From f8817fe56cc6aff1705db78b580652a4e38f8ccc Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 20 Jan 2025 11:39:25 +0100 Subject: [PATCH] Fix JSON::Fragment#to_json signature --- lib/json/common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/json/common.rb b/lib/json/common.rb index 8a000aa3..a9682b94 100644 --- a/lib/json/common.rb +++ b/lib/json/common.rb @@ -168,7 +168,7 @@ def detailed_message(...) class MissingUnicodeSupport < JSONError; end Fragment = Struct.new(:json) do - def to_json(state = nil) + def to_json(state = nil, *) json end end