From: nobu.nokada@... Date: 2001-10-24T07:05:06+09:00 Subject: [ruby-talk:23103] Re: Deprecate keyword? Hi, At Wed, 24 Oct 2001 00:30:05 +0900, Pierre-Charles David wrote: > class Module > def deprecate(methodName) > module_eval < alias_method :deprecated_#{methodName}, :#{methodName} > def #{methodName}(*args) def #{methodName}(*args, &block) > $stderr.puts "Warning: calling deprecated method > #{self}.#{methodName}" > return deprecated_#{methodName}(*args) deprecated_#{methodName}(*args, &block) > end > END > end > end Should pass the block too. Nobu Nakada