From: mental@... Date: 2006-03-14T06:27:37+09:00 Subject: Re: [RCR] abstract method in Ruby Quoting ara.t.howard@noaa.gov: > sure. this one's a bit more robust since it doesn't mask errors: > > def abstract_method m > define_method(m) do |*a| > begin; super; rescue NoMethodError; raise > NotImplementedError, m; end > end > end Hmm, what about cases where the super exists, but calls something which itself raises a NoMethodError? -mental