[flori/json] define_method is also private at Ruby 2.3 and 2.4

https://github.com/flori/json/commit/3804f38bf4
This commit is contained in:
Hiroshi SHIBATA 2023-10-11 13:57:27 +09:00
parent 1b19e9198d
commit e42df781d9
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -397,7 +397,7 @@ EOT
Module.send(:alias_method, :included_orig, :included)
Module.send(:remove_method, :included)
Module.define_method(:included) do |base|
Module.send(:define_method, :included) do |base|
included_orig(base)
included = true
end