super is a keyword, not a method call!

anand posted this on 10 Apr 2011

Methods can be overridden in subclasses of ruby. It is just a process of rewriting method definition, as it make sense in the current class/object.

Calling super .. oops, sorry - writing super anywhere in the over-ridden method will cause the method lookup to continue and the execute the first method found by the name. (If you want to learn about method lookup, here is a good writeup by Gregory Brown. Here are some examples of how super can be used.

Note the lines where super is written. super by default forwards all arguments to the previous method definition, unless and until you write parenthesis after it. super is not a method call though, it is just a keyword in ruby and should not be imagined as calling super(), as in other languages.