Class: Rng::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/rng/builder.rb

Instance Method Summary collapse

Instance Method Details

#build(schema, format:) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/rng/builder.rb', line 3

def build(schema, format:)
  case format
  when :rng
    build_rng(schema)
  when :rnc
    build_rnc(schema)
  else
    raise ArgumentError, "Unsupported format: #{format}"
  end
end