Daily Archives: August 26, 2008

Class.new and .inherited()

In Ruby, the typical way to define a class is using the class keyword: class Foo # … end The class keyword, however, is effectively just syntax sugar for the Class constructor: Foo = Class.new # … end Using Class.new … Continue reading

Posted in Ruby | Tagged | 3 Comments