Sha256: c30471c6f19b01939d508f87a3e7acca9928d5942e7c4e3b8821245cbb8381e3

Contents?: true

Size: 254 Bytes

Versions: 10

Compression:

Stored size: 254 Bytes

Contents

module Antlr4::Runtime

  class TextChunk < Chunk
    attr_reader :text

    def initialize(text)
      raise IllegalArgumentException, 'text cannot be null' if text.nil?

      @text = text
    end

    def to_s
      "'" + @text + "'"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
antlr4-runtime-0.2.8 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.7 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.6 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.5 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.4 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.3 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.2 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.1 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.2.0 lib/antlr4/runtime/text_chunk.rb
antlr4-runtime-0.1.0 lib/antlr4/runtime/text_chunk.rb