Skip to content

Commit

Permalink
Fix a method redefinition warning in C parser
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 14, 2025
1 parent 6c603ec commit 30a4a86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/json/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class << self
def parse(...)
new(...).parse
end
alias_method :parse, :parse # Allow redefinition by extensions
end

def initialize(source, opts = nil)
Expand Down

0 comments on commit 30a4a86

Please sign in to comment.