From: Ned Konz Date: 2002-07-06T00:00:14+09:00 Subject: Re: self_parent On Friday 05 July 2002 07:37 am, Tom Sawyer wrote: > by the way, this idea actually stems from an earlier desire to have > objects created by nested class definitions inherit their parent > class instance. Do you really need a parent *class*? If you can get by with a module, you can do this: module A def aa puts "Aaa" end def cc puts "Acc" end class B include A def bb puts "Bbb" end def aa puts "Baa" end end end b = A::B.new b.aa b.bb b.cc -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE