A
Aryk Grosz
I'm having trouble understanding why this is:
module A
module B
end
end
A.module_eval "B" -> A::B
A.module_eval do B end -> ERROR!
A.module_eval do self::B end => A::B
Why does the second one error out? If its actually being evaluated
within the scope of the module, it should work...no?
Could someone explain this to me. Is there a trick I'm not doing?
module A
module B
end
end
A.module_eval "B" -> A::B
A.module_eval do B end -> ERROR!
A.module_eval do self::B end => A::B
Why does the second one error out? If its actually being evaluated
within the scope of the module, it should work...no?
Could someone explain this to me. Is there a trick I'm not doing?