lib/dry/schema/processor.rb in dry-schema-1.4.1 vs lib/dry/schema/processor.rb in dry-schema-1.4.2
- old
+ new
@@ -60,10 +60,10 @@
# @return [Processor]
#
# @api public
def new(options = nil, &block)
if options || block
- processor = super
+ processor = super(**(options || EMPTY_HASH))
yield(processor) if block
processor
elsif definition
definition.call
else