class Antlr4::Runtime::TagChunk
Attributes
label[R]
tag[R]
Public Class Methods
new(label, tag)
click to toggle source
# File lib/antlr4/runtime/tag_chunk.rb, line 7 def initialize(label, tag) if tag.nil? || tag.empty? raise IllegalArgumentException, 'tag cannot be nil or empty' end @label = label @tag = tag end
Public Instance Methods
to_s()
click to toggle source
# File lib/antlr4/runtime/tag_chunk.rb, line 16 def to_s return @label + ':' + @tag unless @label.nil? @tag end