diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-01-14 08:39:15 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-01-14 09:08:02 +0100 |
| commit | 2f0741dd3ce7511e1d0a363d0a8b91d740f31df5 (patch) | |
| tree | f27f9387cb540da8fbe9a6802e3312041ea1e0eb | |
| parent | 599fbeaffa8e029e11223c24af47a55500f23fc3 (diff) | |
[ruby/json] Fix a method redefinition warning in C parser
Ref: https://github.com/ruby/json/pull/728
Ref: https://github.com/ruby/ruby/pull/12569
https://github.com/ruby/json/commit/30a4a86954
| -rw-r--r-- | ext/json/lib/json/ext.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/lib/json/ext.rb b/ext/json/lib/json/ext.rb index f9fca0a163..1db5ea122c 100644 --- a/ext/json/lib/json/ext.rb +++ b/ext/json/lib/json/ext.rb @@ -11,6 +11,7 @@ module JSON def parse(...) new(...).parse end + alias_method :parse, :parse # Allow redefinition by extensions end def initialize(source, opts = nil) |
