Class: EsiAttributeLanguage::OrNode
- Defined in:
- lib/esi_attribute_language.rb
Instance Method Summary collapse
- #execute(context) ⇒ Object
-
#initialize(lval, rval) ⇒ OrNode
constructor
A new instance of OrNode.
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 |