lib/dry/schema/macros/value.rb in dry-schema-1.3.3 vs lib/dry/schema/macros/value.rb in dry-schema-1.3.4
- old
+ new
@@ -15,11 +15,11 @@
if schema
current_type = schema_dsl.types[name]
updated_type =
- if array?(current_type)
+ if array_type?(current_type)
build_array_type(current_type, schema.type_schema)
else
schema.type_schema
end
@@ -38,10 +38,10 @@
self
end
# @api private
- def array?(type)
+ def array_type?(type)
primitive_inferrer[type].eql?([::Array])
end
# @api private
def build_array_type(array_type, member)