Sha256: d34667f5881b8e47469211e6e81f5011e94f5bf6c4ba4f1701e13aaeb185c21c
Contents?: true
Size: 378 Bytes
Versions: 17
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true module RBS class Parser class Token attr_reader :type attr_reader :location def initialize(type:, location:) @type = type @location = location end def value @location.source end def comment? @type == :tCOMMENT || @type == :tLINECOMMENT end end end end
Version data entries
17 entries across 17 versions & 2 rubygems