Sha256: 902d4ee6c3a7f53fea05f34edaf5e51c64942adba86793ecc58b8224e13be982
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require 'avro/builder/version' require 'avro/builder/dsl' require 'avro/builder/schema_store' module Avro module Builder # Accepts a string or block to eval to define a JSON schema def self.build(str = nil, &block) Avro::Builder::DSL.new(str, &block).to_json end # Accepts a string or block to eval and returns an Avro::Schema def self.build_schema(str = nil, &block) Avro::Builder::DSL.new(str, &block).as_schema end # Add paths that will be searched for definitions def self.add_load_path(*paths) Avro::Builder::DSL.load_paths.merge(paths) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avro-builder-0.8.0 | lib/avro/builder.rb |