ruby/trema/monkey-patch/module/deprecation.rb in trema-0.4.6 vs ruby/trema/monkey-patch/module/deprecation.rb in trema-0.4.7

- old
+ new

@@ -17,10 +17,10 @@ module MonkeyPatch module Module module Deprecation - def deprecate method_pairs + def deprecate(method_pairs) method_pairs.each do | old_method, new_method | define_method old_method do | *args, &block | $stderr.puts "Warning: #{ old_method }() is deprecated. Use #{ new_method }()." __send__ new_method, *args, &block end