Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/sqreen/backport/original_name.rb
Instance Method Summary collapse
Instance Method Details
#alias_method_with_original_name(newname, oldname) ⇒ Object
82 83 84 85 86 |
# File 'lib/sqreen/backport/original_name.rb', line 82 def alias_method_with_original_name(newname, oldname) alias_method_without_original_name(newname, oldname).tap do instance_method(newname).send(:original_name=, :"#{oldname}") end end |