Class: CommaParty::DestructureElement

Inherits:
Object
  • Object
show all
Defined in:
lib/commaparty/destructure_element.rb

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ DestructureElement

Returns a new instance of DestructureElement.



8
9
10
# File 'lib/commaparty/destructure_element.rb', line 8

def initialize(element)
  @element = element
end

Instance Method Details

#callObject



12
13
14
# File 'lib/commaparty/destructure_element.rb', line 12

def call
  normalize_element(@element)
end