From: ts Date: 2002-10-14T23:26:09+09:00 Subject: Re: access surrounding class >>>>> "M" == Matthias Veit writes: M> Following scenario: Well, I've not understood what you want to do but try this pigeon% cat b.rb #!/usr/bin/ruby class A class C end end class B < A def b puts "b" end end B::C.new.b pigeon% pigeon% b.rb ./b.rb:12: undefined method `b' for # (NameError) pigeon% The class of the new object is A::C, even if you call B::C::new Guy Decoux