Class: SpotFeel::Disjunction

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

Overview

  1. disjunction = expression , “or” , expression ;

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(context = {}) ⇒ Object



471
472
473
# File 'lib/spot_feel/nodes.rb', line 471

def eval(context = {})
  head.eval(context) || tail.eval(context)
end