Class: MilkTea::Lexer::StringSegment
- Inherits:
-
Data
- Object
- Data
- MilkTea::Lexer::StringSegment
- Defined in:
- lib/milk_tea/core/lexer.rb
Instance Attribute Summary collapse
-
#next_index ⇒ Object
readonly
Returns the value of attribute next_index.
-
#recovered ⇒ Object
readonly
Returns the value of attribute recovered.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(next_index:, value:, recovered: false) ⇒ StringSegment
constructor
A new instance of StringSegment.
Constructor Details
#initialize(next_index:, value:, recovered: false) ⇒ StringSegment
Returns a new instance of StringSegment.
35 36 37 |
# File 'lib/milk_tea/core/lexer.rb', line 35 def initialize(next_index:, value:, recovered: false) super(next_index:, value:, recovered:) end |
Instance Attribute Details
#next_index ⇒ Object (readonly)
Returns the value of attribute next_index
34 35 36 |
# File 'lib/milk_tea/core/lexer.rb', line 34 def next_index @next_index end |
#recovered ⇒ Object (readonly)
Returns the value of attribute recovered
34 35 36 |
# File 'lib/milk_tea/core/lexer.rb', line 34 def recovered @recovered end |
#value ⇒ Object (readonly)
Returns the value of attribute value
34 35 36 |
# File 'lib/milk_tea/core/lexer.rb', line 34 def value @value end |