Programming Ruby: Chapter 3

20 chapters of Python should be a foundation solid enough to let me start learning yet another language without mixing the new knowledge up. Well, at least I am gonna give it a try. So here’s what I found out while reading Programming Ruby.

  • When overriding a method in a subclass, the keyword super suffices on its own to qualify the overridden method in the base class. The method name itself does not need to be specified.
  • Simple getters and setters are generated when calling attr_reader or attr_writer respectively.

     

Leave a Reply