Class: EsiAttributeLanguage::ConcatNode

Inherits:
Node
  • Object
show all
Defined in:
lib/esi_attribute_language.rb

Instance Method Summary collapse

Methods inherited from Node

cleanse_string, #result, #result_single

Constructor Details

#initialize(*parts) ⇒ ConcatNode

Returns a new instance of ConcatNode.



34
35
36
# File 'lib/esi_attribute_language.rb', line 34

def initialize(*parts)
  @parts = parts
end

Instance Method Details

#execute(context) ⇒ Object



38
39
40
# File 'lib/esi_attribute_language.rb', line 38

def execute(context)
  result(@parts, context).join('')
end