class Wongi::Engine::NotInListTest
Attributes
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
Calls superclass method
# File lib/wongi-engine/filter/not_in_list_test.rb, line 5 def initialize(x, y) super() @x = x @y = y end
Public Instance Methods
==(other)
click to toggle source
# File lib/wongi-engine/filter/not_in_list_test.rb, line 29 def ==(other) self.class == other.class && x == other.x && y == other.y end
passes?(token)
click to toggle source
# File lib/wongi-engine/filter/not_in_list_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 == :_ !y.include?(x) end
to_s()
click to toggle source
# File lib/wongi-engine/filter/not_in_list_test.rb, line 33 def to_s "#{x} not in #{y}" end