Module: EMRugged::Delegator
- Included in:
- Repository
- Defined in:
- lib/em_rugged/delegator.rb
Instance Method Summary collapse
Instance Method Details
#delegate(method, target = nil) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/em_rugged/delegator.rb', line 28 def delegate(method, target = nil) target ||= method define_method(method) do |*args| subject.send(target, *args) end end |