class Trinamo::BaseConverter

Attributes

ddl[RW]
ddl_yaml_path[RW]

Public Class Methods

new(ddl_yaml_path, ddl = nil) click to toggle source
# File lib/trinamo/converter/base_converter.rb, line 8
def initialize(ddl_yaml_path, ddl = nil)
  @ddl_yaml_path = ddl_yaml_path
  @ddl = if ddl
    ddl
  else
    ddl_yaml_path ? YAML.load_file(ddl_yaml_path).deep_symbolize_keys : nil
  end
end

Public Instance Methods

convert(format) click to toggle source
# File lib/trinamo/converter/base_converter.rb, line 17
def convert(format)
  Trinamo::Converter.load(@ddl_yaml_path, format, @ddl).convert
end