summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-03-27 10:34:17 +0100
committerHiroshi SHIBATA <[email protected]>2025-03-28 12:44:53 +0900
commit756b75f2421008a46ee68390c683ca2c1a0ddc31 ()
treebabcd374b16cae7ab40c11be176e32661a693b5d /ext/json/lib
parent96ecac1e245aaac4484f69a731d2af4328760a8e (diff)
[ruby/json] Remove `Class#json_creatable?` monkey .
https://.com/ruby/json/commit/1ca7efed1f
Notes: Merged: https://.com/ruby/ruby/pull/13004
-rw-r--r--ext/json/lib/json/common.rb11
1 files changed, 0 insertions, 11 deletions
@@ -951,14 +951,3 @@ module ::Kernel
JSON.generate(object, args.first)
end
end
-
-# Extends any Class to include _json_creatable?_ method.
-class ::Class
- # Returns true if this class can be used to create an instance
- # from a serialised JSON string. The class has to implement a class
- # method _json_create_ that expects a hash as first parameter. The hash
- # should include the required data.
- def json_creatable?
- respond_to?(:json_create)
- end
-end