lib/dry/schema/macros/maybe.rb in dry-schema-0.6.0 vs lib/dry/schema/macros/maybe.rb in dry-schema-1.0.0

- old
+ new

@@ -5,10 +5,10 @@ module Dry module Schema module Macros # Macro used to specify predicates for a value that can be `nil` # - # @api public + # @api private class Maybe < DSL # @api private def call(*args, **opts, &block) if args.include?(:empty?) raise ::Dry::Schema::InvalidSchemaError, 'Using maybe with empty? predicate is invalid'