From: Aryk Grosz Date: 2010-01-12T05:42:52+09:00 Subject: A.module_eval question 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? -- Posted via http://www.ruby-forum.com/.