Correct eq_op
This commit is contained in:
parent
bc885e47bf
commit
5c4efcf67f
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ module Mm2ep
|
||||||
end
|
end
|
||||||
|
|
||||||
def and_op
|
def and_op
|
||||||
binding.pry
|
# binding.pry
|
||||||
return @expr1 && @expr2
|
return @expr1 && @expr2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -58,7 +58,7 @@ module Mm2ep
|
||||||
attr_reader :val, :other
|
attr_reader :val, :other
|
||||||
def initialize val, other
|
def initialize val, other
|
||||||
@val = val.value.to_s
|
@val = val.value.to_s
|
||||||
if other.value.to_s.match(/true/).nil?
|
unless other.value.to_s.match(/true/).nil?
|
||||||
@other = true
|
@other = true
|
||||||
else
|
else
|
||||||
@other = false
|
@other = false
|
||||||
|
@ -66,7 +66,7 @@ module Mm2ep
|
||||||
end
|
end
|
||||||
|
|
||||||
def eq_op
|
def eq_op
|
||||||
return val = @other
|
return if val == @other
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue