Class: EsiAttributeLanguage::OrNode

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(lval, rval) ⇒ OrNode

Returns a new instance of OrNode.



61
62
63
64
# File 'lib/esi_attribute_language.rb', line 61

def initialize(lval, rval)
  @lval = lval
  @rval = rval
end

Instance Method Details

#execute(context) ⇒ Object



66
67
68
# File 'lib/esi_attribute_language.rb', line 66

def execute(context)
  result(@lval, context) || result(@rval, context)
end