Skip to content

Instantly share code, notes, and snippets.

@ianterrell
Created June 5, 2009 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianterrell/124400 to your computer and use it in GitHub Desktop.
Save ianterrell/124400 to your computer and use it in GitHub Desktop.
[14:04][ian@ian-terrells-macbook-pro:~]$ ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
[14:04][ian@ian-terrells-macbook-pro:~]$ irb
>> class X
>> end
=> nil
>> class Y < X
>> end
=> nil
>> X.subclasses
NoMethodError: undefined method `subclasses' for X:Class
from (irb):5
>> x = X.new
=> #<X:0x5ed1ac>
>> x.subclasses
NoMethodError: undefined method `subclasses' for #<X:0x5ed1ac>
from (irb):7
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment