programming.nbk: Home | Index | Next Page: Ruby: Tk | Previous Page: Ruby: require
Ruby: super
- When you invoke super with no arguments Ruby sends a message to the parent of the current object, asking it to invoke a method of the same name as the method invoking super. It automatically forwards the arguments that were passed to the method from which it's called.
- Called with an empty argument list - super()-it sends no arguments to the higher-up method, even if arguments were passed to the current method.
- Called with specific arguments - super(a, b, c) - it sends exactly those arguments.
programming.nbk: Home | Index | Next Page: Ruby: Tk | Previous Page: Ruby: require
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time