Class: Wongi::Engine::TokenAssignment
- Inherits:
-
Struct
- Object
- Struct
- Wongi::Engine::TokenAssignment
- Defined in:
- lib/wongi-engine/beta/join_node.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#wme ⇒ Object
Returns the value of attribute wme.
Instance Method Summary collapse
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field
4 5 6 |
# File 'lib/wongi-engine/beta/join_node.rb', line 4 def field @field end |
#wme ⇒ Object
Returns the value of attribute 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 |
#inspect ⇒ Object
8 9 10 |
# File 'lib/wongi-engine/beta/join_node.rb', line 8 def inspect "#{field} of #{wme}" end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/wongi-engine/beta/join_node.rb', line 11 def to_s inspect end |