Class: RBS::Parser::LexResult
- Inherits:
-
Object
- Object
- RBS::Parser::LexResult
- Defined in:
- lib/rbs/parser/lex_result.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(buffer:, value:) ⇒ LexResult
constructor
A new instance of LexResult.
Constructor Details
#initialize(buffer:, value:) ⇒ LexResult
Returns a new instance of LexResult.
9 10 11 12 |
# File 'lib/rbs/parser/lex_result.rb', line 9 def initialize(buffer:, value:) @buffer = buffer @value = value end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
6 7 8 |
# File 'lib/rbs/parser/lex_result.rb', line 6 def buffer @buffer end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/rbs/parser/lex_result.rb', line 7 def value @value end |