Skip to content

Instantly share code, notes, and snippets.

@hiremaga
Created August 3, 2010 05:43
Show Gist options
  • Save hiremaga/505902 to your computer and use it in GitHub Desktop.
Save hiremaga/505902 to your computer and use it in GitHub Desktop.
$ ruby -rubygems -e 'require "active_support"; class Foo; class Bar; end; class Baz; end; end; Foo::Bar::Baz'
/.../gems/activesupport-2.3.8/lib/active_support/dependencies.rb:417:in `load_missing_constant': Foo is not missing constant Baz! (ArgumentError)
from /.../gems/activesupport-2.3.8/lib/active_support/dependencies.rb:96:in `const_missing'
from /.../gems/activesupport-2.3.8/lib/active_support/dependencies.rb:98:in `send'
from /.../gems/activesupport-2.3.8/lib/active_support/dependencies.rb:98:in `const_missing'
from -e:1
$ ruby -rubygems -e 'class Foo; class Bar; end; class Baz; end; end; Foo::Bar::Baz'
-e:1: uninitialized constant Foo::Bar::Baz (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment