module Tins::MethodMissingDelegator::DelegatorModule
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.
Public Class Methods
Source
# File lib/tins/dslkit.rb, line 505 def initialize(delegator, *a, &b) self.method_missing_delegator = delegator super(*a, &b) if defined? super end
Calls superclass method