lib/dry/schema/macros/filled.rb in dry-schema-0.6.0 vs lib/dry/schema/macros/filled.rb in dry-schema-1.0.0
- old
+ new
@@ -5,11 +5,12 @@
module Dry
module Schema
module Macros
# Macro used to prepend `:filled?` predicate
#
- # @api public
+ # @api private
class Filled < Value
+ # @api private
def call(*predicates, **opts, &block)
if predicates.include?(:empty?)
raise ::Dry::Schema::InvalidSchemaError, 'Using filled with empty? predicate is invalid'
end