class TL1::InputFormat

A format for an input message.

Attributes

source[R]

Public Class Methods

new(source) click to toggle source
# File lib/tl1/input_format.rb, line 7
def initialize(source)
  @source = source
end

Public Instance Methods

as_json() click to toggle source
# File lib/tl1/input_format.rb, line 15
def as_json
  ast.as_json
end
ast() click to toggle source
# File lib/tl1/input_format.rb, line 11
def ast
  @ast ||= AST.parse_message_format(source)
end
format(**kwargs) click to toggle source
# File lib/tl1/input_format.rb, line 19
def format(**kwargs)
  ast.format(**kwargs)
end