Class: TraceVisualization::Data::TokenPosition
- Inherits:
-
Object
- Object
- TraceVisualization::Data::TokenPosition
- Defined in:
- lib/trace_visualization/data/token.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, pos) ⇒ TokenPosition
constructor
A new instance of TokenPosition.
Constructor Details
#initialize(token, pos) ⇒ TokenPosition
Returns a new instance of TokenPosition.
53 54 55 |
# File 'lib/trace_visualization/data/token.rb', line 53 def initialize(token, pos) @token, @pos = token, pos end |
Instance Attribute Details
#pos ⇒ Object
Returns the value of attribute pos.
51 52 53 |
# File 'lib/trace_visualization/data/token.rb', line 51 def pos @pos end |
#token ⇒ Object
Returns the value of attribute token.
51 52 53 |
# File 'lib/trace_visualization/data/token.rb', line 51 def token @token end |