Module: PolyDelegate::Delegated::ClassMethods

Includes:
ClassicAttributeAccess
Defined in:
lib/poly_delegate/delegated.rb

Instance Method Summary collapse

Methods included from ClassicAttributeAccess

attr_accessor, attr_reader, attr_writer

Instance Method Details

#method_added(name)



30
31
32
33
34
35
# File 'lib/poly_delegate/delegated.rb', line 30

def method_added(name)
  return if %i(method_missing initialize).include?(name)
  return if PolyDelegate.callers(2).include?(:redefine_method)

  PolyDelegate.create_delegated_method(self, name)
end