Module: ConvenientService::Support::Delegate::ClassMethodsForForwardable
- Defined in:
- lib/convenient_service/support/delegate.rb
Instance Method Summary collapse
Instance Method Details
#delegate(*methods, to:) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/convenient_service/support/delegate.rb', line 27 def delegate(*methods, to:) ## # NOTE: The following condition will NOT ever change. That is why it is inlined. # receiver = if to == :class :"self.class" else to end def_delegators receiver, *methods end |