From: nobu@... Date: 2006-03-13T21:53:41+09:00 Subject: Re: [RCR] abstract method in Ruby Hi, At Mon, 13 Mar 2006 13:10:45 +0900, ara.t.howard@noaa.gov wrote in [ruby-talk:183841]: > harp:~ > cat a.rb > class Module > def abstract_method m > define_method(m) do |*a| > begin; super; rescue NoMethodError; raise NotImplementedError, m; end This hides NoMethodError within the super method too. Instead: defined?(super) or raise NotImplementedError, m super -- Nobu Nakada