lib/dry/schema/macros/dsl.rb in dry-schema-1.3.2 vs lib/dry/schema/macros/dsl.rb in dry-schema-1.3.3
- old
+ new
@@ -26,9 +26,15 @@
# PredicateInferrer is used to infer predicate type-check from a type spec
# @return [PredicateInferrer]
# @api private
option :predicate_inferrer, default: proc { PredicateInferrer.new(compiler.predicates) }
+ # @!attribute [r] primitive_inferrer
+ # PrimitiveInferrer used to get a list of primitive classes from configured type
+ # @return [PrimitiveInferrer]
+ # @api private
+ option :primitive_inferrer, default: proc { PrimitiveInferrer.new }
+
# @overload value(*predicates, **predicate_opts)
# Set predicates without and with arguments
#
# @param [Array<Symbol>] predicates
# @param [Hash] predicate_opts