From: Intransition Date: 2009-12-30T05:07:40+09:00 Subject: Re: Using #include at the instance level? This is really becoming annoying. I can't even do it via a dynamic class definitions either. module M def m1; "m1"; end module N def self.n1; "n1"; end end end class X class << self alias _new new def new(&block) klass = Class.new(self) klass.class_eval(&block) klass._new end end def m ; m1 ; end def n ; N.n1 ; end end x = X.new do include M end p x.m p x.n #=> uninitialized constant X::N (NameError) Did constant lookup change between 1.8.6 and 1.8.7? Seems to me this used to be possible, and I find it unacceptable that normal constant lookup would not apply to dynamic class definitions, let alone the singleton classes.