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

new(delegator, *a, &b) click to toggle source
Calls superclass method
# File lib/tins/dslkit.rb, line 484
def initialize(delegator, *a, &b)
  self.method_missing_delegator = delegator
  super(*a, &b) if defined? super
end