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


13
14
15
# File 'lib/representable/inheritable.rb', line 13

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