Sha256: b7827a3238b2cdc6f3619b34e023ffd7ec48f64fe4c29571a813429fbc4adc5b

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true
module TL1
  # A format for an input message.
  class InputFormat
    attr_reader :source

    def initialize(source)
      @source = source
    end

    def ast
      @ast ||= AST.parse_message_format(source)
    end

    def as_json
      ast.as_json
    end

    def format(**kwargs)
      ast.format(**kwargs)
    end
  end # class OutputFormat
end # module TL1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tl1-0.1.0 lib/tl1/input_format.rb