Calling super in Ruby
Ruby, like most programming languages, has a set of reserved identifiers, keywords:
Next we’ll talk about
super. We should use it when we want to take some behavior of an already defined method. For example, when implementing inheritance or overriding methods from a plugin.
In Ruby context, this means “call the method with the same name along the classes and modules available to the current object”.
super, be careful with syntax. Called with omitted arguments (without parentheses), it acts differently than passing an empty argument list:
super: calls with the same arguments as those used to call the current method.
super(): calls with empty arguments list.
super performs in different cases: