Skip to content

Instantly share code, notes, and snippets.

@levinalex
Created January 29, 2009 11:53
Show Gist options
  • Save levinalex/54512 to your computer and use it in GitHub Desktop.
Save levinalex/54512 to your computer and use it in GitHub Desktop.
>> Foo = 3
=> 3
>> class Bar; end
=> nil
>> module Fred; end
=> nil
>> Fred::Foo
NameError: uninitialized constant Fred::Foo
from (irb):4
>> Bar::Foo
(irb):5: warning: toplevel constant Foo referenced by Bar::Foo
=> 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment