Class: Wongi::Engine::TokenAssignment

Inherits:
Struct
  • Object
show all
Defined in:
lib/wongi-engine/beta/join_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



4
5
6
# File 'lib/wongi-engine/beta/join_node.rb', line 4

def field
  @field
end

#wmeObject

Returns the value of attribute wme

Returns:

  • (Object)

    the current value of wme



4
5
6
# File 'lib/wongi-engine/beta/join_node.rb', line 4

def wme
  @wme
end

Instance Method Details

#call(token = nil) ⇒ Object



5
6
7
# File 'lib/wongi-engine/beta/join_node.rb', line 5

def call token = nil
  wme.send field
end

#inspectObject



8
9
10
# File 'lib/wongi-engine/beta/join_node.rb', line 8

def inspect
  "#{field} of #{wme}"
end

#to_sObject



11
12
13
# File 'lib/wongi-engine/beta/join_node.rb', line 11

def to_s
  inspect
end