From: Brian Candler Date: 2008-10-27T17:40:59+09:00 Subject: Re: Access module's anonymous parent Is this what you're looking for? m = Module.new m.instance_eval do def foo puts "Foo called" end parent = self child = class self::A; self; end child.class_eval { parent.foo } end a = m.const_get('A').new puts ParentSelf # This should raise - constant should not exist (you can also use 'm.foo' instead of 'parent.foo', which means you can remove the assignment 'parent = self') -- Posted via http://www.ruby-forum.com/.