Module: Humanoid::Extensions::Nil::Assimilation

Included in:
NilClass
Defined in:
lib/humanoid/extensions/nil/assimilation.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#assimilate(parent, options, type = nil) ⇒ Object

Will remove the child object from the parent.



7
8
9
# File 'lib/humanoid/extensions/nil/assimilation.rb', line 7

def assimilate(parent, options, type = nil)
  parent.remove_attribute(options.name); self
end