Sha256: 6470a7bccc04481ee9cd2ef41ced04eb88df0c7431a0df69604edec31936615b
Contents?: true
Size: 775 Bytes
Versions: 8
Compression:
Stored size: 775 Bytes
Contents
require "paradocs/version" require "paradocs/support" require "paradocs/registry" require "paradocs/field" require "paradocs/results" require "paradocs/schema" require "paradocs/context" require "paradocs/base_policy" require 'ostruct' module Paradocs def self.registry @registry ||= Registry.new end def self.policy(name, plcy = nil, &block) registry.policy name, plcy, &block end def self.config @config ||= OpenStruct.new( explicit_errors: false, whitelisted_keys: [], default_schema_name: :schema, meta_prefix: "_", whitelist_coercion: nil ) end def self.configure yield self.config if block_given? self.config end end require 'paradocs/default_types' require 'paradocs/policies'
Version data entries
8 entries across 8 versions & 1 rubygems