class RBS::Parser::Token

属性

location[R]
type[R]

公共类方法

new(type:, location:) 点击以切换源代码
# File rbs-3.8.0/lib/rbs/parser/token.rb, line 9
def initialize(type:, location:)
  @type = type
  @location = location
end

公共实例方法

comment?() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/parser/token.rb, line 18
def comment?
  @type == :tCOMMENT || @type == :tLINECOMMENT
end
value() 点击以切换源代码
# File rbs-3.8.0/lib/rbs/parser/token.rb, line 14
def value
  @location.source
end