From: Paul Brannan Date: 2003-12-17T01:35:03+09:00 Subject: Re: UnboundMethods Useless? On Wed, Dec 17, 2003 at 12:19:05AM +0900, ts wrote: > >>>>> "P" == Paul Brannan writes: > > Try this > > P> base_foo = Base.instance_method(:foo) > P> Derived.__send__(:define_method, :foo, base_foo) > > class A > base_foo = Base.instance_method(:foo) > Derived.__send__(:define_method, :foo, base_foo) > end > > P> Derived.new.foo() > > now it must work By this I'm guessing you mean that I don't have to explictly make foo public. Is this because all methods defined at the top level are private by default, even if they are defined with __send__(:define_method)? Paul