Module: Schemacop
- Defined in:
- lib/schemacop.rb,
lib/schemacop/node.rb,
lib/schemacop/caster.rb,
lib/schemacop/dupper.rb,
lib/schemacop/schema.rb,
lib/schemacop/collector.rb,
lib/schemacop/root_node.rb,
lib/schemacop/field_node.rb,
lib/schemacop/node_resolver.rb,
lib/schemacop/node_with_block.rb,
lib/schemacop/node_supporting_type.rb,
lib/schemacop/node_supporting_field.rb,
lib/schemacop/validator/nil_validator.rb,
lib/schemacop/validator/hash_validator.rb,
lib/schemacop/validator/array_validator.rb,
lib/schemacop/validator/float_validator.rb,
lib/schemacop/validator/number_validator.rb,
lib/schemacop/validator/object_validator.rb,
lib/schemacop/validator/string_validator.rb,
lib/schemacop/validator/symbol_validator.rb,
lib/schemacop/validator/boolean_validator.rb,
lib/schemacop/validator/integer_validator.rb
Defined Under Namespace
Modules: Exceptions Classes: ArrayValidator, BooleanValidator, Caster, Collector, Dupper, FieldNode, FloatValidator, HashValidator, IntegerValidator, NilValidator, Node, NodeResolver, NodeSupportingField, NodeSupportingType, NodeWithBlock, NumberValidator, ObjectValidator, RootNode, Schema, StringValidator, SymbolValidator
Constant Summary collapse
- DEFAULT_CASTERS =
{ String => { Integer => proc { |s| s.blank? ? nil : Integer(s, 10) }, Float => proc { |s| s.blank? ? nil : Float(s) } }, Float => { Integer => proc { |f| Integer(f) } }, Integer => { Float => proc { |f| Float(f) } } }