lib/schemacop/v3/context.rb in schemacop-3.0.5 vs lib/schemacop/v3/context.rb in schemacop-3.0.6
- old
+ new
@@ -15,10 +15,10 @@
@schemas = @schemas.merge(
name => Node.create(type, **options, &block)
).freeze
end
- def spawn_with(json_format: @json_format)
+ def with_json_format(json_format)
prev_json_format = @json_format
@json_format = json_format
return yield
ensure
@json_format = prev_json_format