Sha256: 3215e9a83776f6bd4ca4869617e0894da9369803bd1736df538ba84ad644eb45
Contents?: true
Size: 441 Bytes
Versions: 22
Compression:
Stored size: 441 Bytes
Contents
require 'ostruct' module JSON module SchemaBuilder module Configuration def options return @options if @options defaults = JSON::SchemaBuilder.default_options @options = OpenStruct.new defaults.to_h end def options=(config) @options = OpenStruct.new config.to_h end def configure @options = nil yield(options) if block_given? end end end end
Version data entries
22 entries across 22 versions & 1 rubygems