Random Ruby Tricks: Class.new

from blog Steve Klabnik, | ↗ original
Sep 09 2012 If you didn’t know, classes are first-class objects in Ruby: 1.9.3p194 :001 > String.class => Class 1.9.3p194 :002 > Class.class => Class How is this useful, though? Inheritance You may create very simple classes at times. This often happens when...