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? -- Markus On Sat, 2004-09-25 at 18:57, trans. (T. Onoma) wrote: > I'm wondering how feasible it might be to implement a local_method_missing > hook in core Ruby? What I mean by that is a hook like method_missing, but one > that only is concerned with the methods defined in the current class context. > > E.g. > > class A > def a; end > end > class B < A > def local_method_missing(sym, *args) > puts "Can't find #{sym}." > end > end > > B.new.a > #=> Can't find a. > > Thanks, > T. >