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.
47 48 49 |
# File 'lib/milk_tea/core/lexer.rb', line 47 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
46 47 48 |
# File 'lib/milk_tea/core/lexer.rb', line 46 def next_index @next_index end |
#recovered ⇒ Object (readonly)
Returns the value of attribute recovered
46 47 48 |
# File 'lib/milk_tea/core/lexer.rb', line 46 def recovered @recovered end |
#value ⇒ Object (readonly)
Returns the value of attribute value
46 47 48 |
# File 'lib/milk_tea/core/lexer.rb', line 46 def value @value end |