Skip to content

Instantly share code, notes, and snippets.

@pedro
Created April 24, 2014 21:57
Show Gist options
  • Save pedro/11270936 to your computer and use it in GitHub Desktop.
Save pedro/11270936 to your computer and use it in GitHub Desktop.
module Base
class Foo
end
end
module Base
class A
def self.test
puts Foo.object_id # this works
end
end
end
class Base::B
def self.test
puts Foo.object_id # raises uninitialized constant Base::B::Foo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment