Sha256: b632d0e2aad886b8879b40481025399f674396354a2ba11b524fe0c1a14c87c0
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module TL1 # A format for records appearing in output messages. class OutputFormat 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 parse(record_source) ast.parse(record_source) 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/output_format.rb |