Module: Equation::BooleanAnd2
- Defined in:
- lib/equation_grammar.rb
Instance Method Summary collapse
Instance Method Details
#value(ctx:) ⇒ Object
242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/equation_grammar.rb', line 242 def value(ctx:) base = lhs.value(ctx: ctx) tail.elements.each do |k| case k.operator.text_value when '&&' base &&= k.rhs.value(ctx: ctx) end end base end |