Module: Tins::MethodMissingDelegator::DelegatorModule
Overview
Including this module in your classes makes an initialize method available, whose first argument is used as method_missing_delegator attribute. If a superior initialize method was defined it is called with all arguments but the first.
Instance Attribute Summary
Attributes included from Tins::MethodMissingDelegator
Instance Method Summary collapse
-
#initialize(delegator, *a, &b) ⇒ Object
The initialize method sets up the delegator and forwards additional arguments to the superclass.
Methods included from Tins::MethodMissingDelegator
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tins::MethodMissingDelegator
Instance Method Details
#initialize(delegator, *a, &b) ⇒ Object
The initialize method sets up the delegator and forwards additional arguments to the superclass.
805 806 807 808 |
# File 'lib/tins/dslkit.rb', line 805 def initialize(delegator, *a, &b) self.method_missing_delegator = delegator super(*a, &b) if defined? super end |