Class: CommaParty::DestructureElement
- Inherits:
-
Object
- Object
- CommaParty::DestructureElement
- Defined in:
- lib/commaparty/destructure_element.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(element) ⇒ DestructureElement
constructor
A new instance of DestructureElement.
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
#call ⇒ Object
12 13 14 |
# File 'lib/commaparty/destructure_element.rb', line 12 def call normalize_element(@element) end |