Module: ConvenientService::Support::Delegate::ClassMethodsForForwardable
- Included in:
- ConvenientService::Support::Delegate
- Defined in:
- lib/convenient_service/support/delegate.rb
Instance Method Summary collapse
Instance Method Details
#delegate(*methods, to:) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/convenient_service/support/delegate.rb', line 32 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 |