class Module

+

Public Instance Methods

flexmock_deprecate(*method_names) click to toggle source
# File lib/flexmock/deprecated_methods.rb, line 14
def flexmock_deprecate(*method_names)
  method_names.each do |method_name|
    eval_line = __LINE__ + 1
    module_eval %Q{
      def #{method_name}(*args)
        $stderr.puts "#{method_name} is deprecated, use flex#{method_name} instead"
        flex#{method_name}(*args)
      end
    }, __FILE__, eval_line
  end
end