From: "trans. (T. Onoma)" Date: 2004-09-28T01:28:47+09:00 Subject: Re: local_method_missing possible On Sunday 26 September 2004 10:33 pm, jim@freeze.org wrote: > > 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 > > Could you just use super? > > class A > def a; puts "in a"; end > end > class B < A > def a > puts "before" > super > puts "after" > end > end The idea is to submethod multiple methods in one fell-swoop. Hence: if /^a/ =~ meth.to_s If you have any ideas on other ways to do this, I would love to hear them. Thanks, T.