class Wongi::Engine::BetaTest
Attributes
field[R]
variable[R]
Public Class Methods
new(field, variable)
click to toggle source
# File lib/wongi-engine/beta/join_node.rb, line 21 def initialize field, variable @field, @variable = field, variable end
Public Instance Methods
equivalent?(other)
click to toggle source
# File lib/wongi-engine/beta/join_node.rb, line 32 def equivalent? other other.field == self.field && other.variable == self.variable end
matches?(token, wme)
click to toggle source
# File lib/wongi-engine/beta/join_node.rb, line 25 def matches? token, wme assignment = token[ self.variable ] field = wme.send( self.field ) #field.nil? || assignment && field == assignment end