Class: TimePatterns::SymbToken
- Inherits:
-
Object
- Object
- TimePatterns::SymbToken
- Defined in:
- lib/todo_time_patterns/tokens.rb
Instance Attribute Summary collapse
-
#start_index ⇒ Object
readonly
Returns the value of attribute start_index.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, start_index) ⇒ SymbToken
constructor
A new instance of SymbToken.
- #to_s ⇒ Object
Constructor Details
#initialize(value, start_index) ⇒ SymbToken
Returns a new instance of SymbToken.
36 37 38 39 |
# File 'lib/todo_time_patterns/tokens.rb', line 36 def initialize(value, start_index) @value = value @start_index = start_index end |
Instance Attribute Details
#start_index ⇒ Object (readonly)
Returns the value of attribute start_index.
34 35 36 |
# File 'lib/todo_time_patterns/tokens.rb', line 34 def start_index @start_index end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
33 34 35 |
# File 'lib/todo_time_patterns/tokens.rb', line 33 def value @value end |
Instance Method Details
#to_s ⇒ Object
41 42 43 |
# File 'lib/todo_time_patterns/tokens.rb', line 41 def to_s "{symbol}" end |