From: Eugen Ciur Date: 2010-08-31T21:50:01+09:00 Subject: Re: Ruby 1.9.2 Constant Lookup with BasicObject module M is defined inside Object space. X is one level above it - it is inside BasicObject( where no Object space is visible) Inside X you try to include an object from other space (one level below) I think it will work if you include Object::M On 08/30/2010 07:47 PM, Intransition wrote: > ruby-1.9.2-p0> module M > ruby-1.9.2-p0 ?> end > => nil > ruby-1.9.2-p0> class X< BasicObject > ruby-1.9.2-p0 ?> include M > ruby-1.9.2-p0 ?> end > NameError: uninitialized constant X::M > from (irb):4:in `' > from (irb):3 > from /home/trans/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `
' > >