Module: Equation::Standalone1

Defined in:
lib/equation_grammar.rb

Instance Method Summary collapse

Instance Method Details

#value(ctx:) ⇒ Object



840
841
842
843
844
845
846
847
# File 'lib/equation_grammar.rb', line 840

def value(ctx:)
  base = unit.value(ctx: ctx)
  negate.text_value.length.times {
    base = !base
  }

  base
end