class RBS::Parser::Token
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/parser/token.rb, line 9 def initialize(type:, location:) @type = type @location = location end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/parser/token.rb, line 18 def comment? @type == :tCOMMENT || @type == :tLINECOMMENT end
Source
# File bundled-src/rbs-3.10.0/lib/rbs/parser/token.rb, line 14 def value @location.source end