Sha256: 51a8079adcafcb50d36d1c5873ba26b6cbb8efd68879820e8b3d558c87e7a195
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
Contents
module Schemacop DEFAULT_CASTERS = { String => { Integer => proc { |s| Integer(s) }, Float => proc { |s| Float(s) } }, Float => { Integer => proc { |f| Integer(f) } }, Integer => { Float => proc { |f| Float(f) } } } end require 'set' require 'active_support/core_ext/class/attribute' require 'active_support/hash_with_indifferent_access' require 'active_support/core_ext/object/deep_dup' require 'schemacop/scoped_env' require 'schemacop/exceptions' require 'schemacop/schema' require 'schemacop/collector' require 'schemacop/node_resolver' require 'schemacop/node' require 'schemacop/node_with_block' require 'schemacop/node_supporting_type' require 'schemacop/field_node' require 'schemacop/root_node' require 'schemacop/node_supporting_field' require 'schemacop/caster' require 'schemacop/validator/array_validator' require 'schemacop/validator/boolean_validator' require 'schemacop/validator/hash_validator' require 'schemacop/validator/number_validator' require 'schemacop/validator/integer_validator' require 'schemacop/validator/float_validator' require 'schemacop/validator/symbol_validator' require 'schemacop/validator/string_validator' require 'schemacop/validator/nil_validator' require 'schemacop/validator/object_validator' # Matches any object, must be last validator
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
schemacop-2.4.2 | lib/schemacop.rb |
schemacop-2.4.1 | lib/schemacop.rb |
schemacop-2.4.0 | lib/schemacop.rb |