Skip to content

Commit

Permalink
Merge pull request #4 from ruby/readline-redefinition
Browse files Browse the repository at this point in the history
Suppress constant redefinition warning
  • Loading branch information
nobu committed Nov 29, 2021
2 parents 16c9c83 + 0e3ca3b commit 00cd638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
require 'readline.so'
rescue LoadError
require 'reline' unless defined? Reline
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
Readline = Reline
end

0 comments on commit 00cd638

Please sign in to comment.