Sha256: 06425cbd20e0ce684d5f1cea9300c24e704fb7493a3d960f34c9199b5cc255c1
Contents?: true
Size: 378 Bytes
Versions: 10
Compression:
Stored size: 378 Bytes
Contents
module Antlr4::Runtime class TagChunk < Chunk attr_reader :tag attr_reader :label def initialize(label, tag) if tag.nil? || tag.empty? raise IllegalArgumentException, 'tag cannot be nil or empty' end @label = label @tag = tag end def to_s return @label + ':' + @tag unless @label.nil? @tag end end end
Version data entries
10 entries across 10 versions & 1 rubygems