Method: Module#lazy_alias
- Defined in:
- lib/freighthopper/lazy_alias.rb
#lazy_alias(to, from) ⇒ Object
2 3 4 |
# File 'lib/freighthopper/lazy_alias.rb', line 2 def lazy_alias(to, from) define_method(to){|*args| send from, *args} end |