Class: RBS::Parser::LexResult

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs/parser/lex_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bufferObject (readonly)

Returns the value of attribute buffer.



6
7
8
# File 'lib/rbs/parser/lex_result.rb', line 6

def buffer
  @buffer
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/rbs/parser/lex_result.rb', line 7

def value
  @value
end