Module: Representable::Config::InheritMethods

Included in:
Representable::Config
Defined in:
lib/representable/config.rb

Instance Method Summary collapse

Instance Method Details

#cloneObject



33
34
35
# File 'lib/representable/config.rb', line 33

def clone
  self.class.new(collect { |d| d.clone })
end

#inherit(parent) ⇒ Object



37
38
39
# File 'lib/representable/config.rb', line 37

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