Module: Dizby::PolymorphicDelegated::ClassMethods
Instance Method Summary
collapse
#attr_accessor, #attr_reader, #attr_writer
Instance Method Details
#__delegated_methods__
33
34
35
|
# File 'lib/dizby/utility/polymorphic_delegated.rb', line 33
def __delegated_methods__
instance_variable_get(:@__delegated_methods__)
end
|
#method_added(name)
37
38
39
40
41
42
|
# File 'lib/dizby/utility/polymorphic_delegated.rb', line 37
def method_added(name)
return if i(method_missing initialize).include?(name)
@__delegated_methods__[name] = instance_method(name)
__send__(:undef_method, name)
nil
end
|