Class: Wongi::Engine::TokenAssignment
- Inherits:
-
Struct
- Object
- Struct
- Wongi::Engine::TokenAssignment
- Defined in:
- lib/wongi-engine/token_assignment.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
2 3 4 |
# File 'lib/wongi-engine/token_assignment.rb', line 2 def field @field end |
#wme ⇒ Object
Returns the value of attribute wme
2 3 4 |
# File 'lib/wongi-engine/token_assignment.rb', line 2 def wme @wme end |
Instance Method Details
#call(_token = nil) ⇒ Object
3 4 5 |
# File 'lib/wongi-engine/token_assignment.rb', line 3 def call(_token = nil) wme.send field end |
#inspect ⇒ Object
7 8 9 |
# File 'lib/wongi-engine/token_assignment.rb', line 7 def inspect "#{field} of #{wme}" end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/wongi-engine/token_assignment.rb', line 11 def to_s inspect end |