Module: Equation::Standalone1

Defined in:
lib/equation_grammar.rb

Instance Method Summary collapse

Instance Method Details

#value(ctx:) ⇒ Object



832
833
834
835
836
837
838
839
# File 'lib/equation_grammar.rb', line 832

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

  base
end