class ConfigSynthesizer

def method_missing(method_name, *args, &block)

def method_missing(method_name, *args, &block)
  abstract_method_missing(
    method_name,
    %i[namespace],
    *args,
    &block
  )
end

def synthesize(content, ext)

def synthesize(content, ext)
  case ext.to_s
  when %(yaml), %(yml)
    translation[:template] = YAML.safe_load(content)
  when %(toml)
    translation[:template] = TomlRB.parse(content)
  when %(json)
    translation[:template] = JSON.parse(content)
  when %(rb)
    if block_given?
      yield
    else
      instance_eval(content)
    end
  end
end