Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/polonium/extensions/module.rb
Instance Method Summary collapse
Instance Method Details
#polonium_deprecate(old_method_name, new_method_name) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/polonium/extensions/module.rb', line 2 def polonium_deprecate(old_method_name, new_method_name) define_method old_method_name do |*args| warn "#{old_method_name} is deprecated. Use #{new_method_name} instead." __send__(new_method_name, *args) end end |