P
Phrogz
I was surprised by the following this weekend:
module Foo
module Bar; end
class Whee1
include Bar
end
end
# All is well
class Foo::Whee2
include Bar
end
#=> uninitialized constant Foo::Whee2::Bar (NameError)
Is the answer simply "lexically scoped resolution"?
Is the above still the case with 1.9?
module Foo
module Bar; end
class Whee1
include Bar
end
end
# All is well
class Foo::Whee2
include Bar
end
#=> uninitialized constant Foo::Whee2::Bar (NameError)
Is the answer simply "lexically scoped resolution"?
Is the above still the case with 1.9?