class Namarara::EqOp
Attributes
errors[R]
Public Class Methods
new(lval, rval)
click to toggle source
# File lib/namarara/parser.rb, line 163 def initialize(lval, rval) @errors = [] @errors.concat lval.errors @errors.concat rval.errors @lval = lval @rval = rval end
Public Instance Methods
compute()
click to toggle source
# File lib/namarara/parser.rb, line 171 def compute @lval.value == @rval.value end
to_s()
click to toggle source
# File lib/namarara/parser.rb, line 175 def to_s "#{@lval} = #{@rval}" end