From: "trans. (T. Onoma)" Date: 2004-09-26T12:10:59+09:00 Subject: Re: local_method_missing possible On Saturday 25 September 2004 10:42 pm, Markus wrote: > I'm not sure I understand what you're getting at. Why would you > subclass A if you didn't want to inherit any of the methods from A? Hi. It's related to AOP. The basic idea is to be able to reroute method invocations. class A def a; puts "here"; end end class B < A def b(meth) puts "before" send(meth) puts "after" end def local_method_missing(sym, *args) if /^a/ =~ meth.to_s b(meth) end end end T. -- ( o _ カラチ // trans. / \ transami@runbox.com I don't give a damn for a man that can only spell a word one way. -Mark Twain