Skip to content

Commit 30a4a86

Browse files
committed
Fix a method redefinition warning in C parser
Ref: #728 Ref: ruby/ruby#12569
1 parent 6c603ec commit 30a4a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/json/ext.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class << self
1111
def parse(...)
1212
new(...).parse
1313
end
14+
alias_method :parse, :parse # Allow redefinition by extensions
1415
end
1516

1617
def initialize(source, opts = nil)

0 commit comments

Comments
 (0)