class Wongi::Engine::EqualityTest
Attributes
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
# File lib/wongi-engine/filter/equality_test.rb, line 7 def initialize x, y @x, @y = x, y end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/wongi-engine/filter/equality_test.rb, line 30 def == other super && x == other.x && y == other.y end
passes?(token)
click to toggle source
# File lib/wongi-engine/filter/equality_test.rb, line 11 def passes? token x = if Template.variable? @x token[@x] else @x end y = if Template.variable? @y token[@y] else @y end return false if x == :_ || y == :_ return x == y end