Class: Representable::Inheritable::Array

Inherits:
Array
  • Object
show all
Includes:
Representable::Inheritable
Defined in:
lib/representable/inheritable.rb

Instance Method Summary collapse

Instance Method Details

#inherit!(parent) ⇒ Object



32
33
34
# File 'lib/representable/inheritable.rb', line 32

def inherit!(parent)
  push(*parent.clone)
end