Module: Stunted::Shapeable

Included in:
FunctionalHash, HashArray
Defined in:
lib/stunted/shapeable.rb

Instance Method Summary collapse

Instance Method Details

#become(*shapes) ⇒ Object



13
14
15
16
# File 'lib/stunted/shapeable.rb', line 13

def become(*shapes)
  return self if shapes.empty?
  self.class.shaped_class(*shapes).new(self)
end