[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:
parent
1b19e9198d
commit
e42df781d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user