When inheriting from a class, it is common to augment some of the functionality of the methods. To avoid copying and pasting the inherited method code, we should just call it by using the super keyword.
super.render() # would call the inherited render method instead of the overriden render method
When inheriting from a class, it is common to augment some of the functionality of the methods. To avoid copying and pasting the inherited method code, we should just call it by using the super keyword.
super.render() # would call the inherited render method instead of the overriden render method