mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/readline] Suppress constant redefinition warning
When already set by `use_lib_reline` in test/readline/helper.rb of readline-ext. https://github.com/ruby/readline/commit/0e3ca3b217
This commit is contained in:
parent
4a09b7de06
commit
e19b656409
1 changed files with 1 additions and 0 deletions
|
@ -2,5 +2,6 @@ begin
|
|||
require 'readline.so'
|
||||
rescue LoadError
|
||||
require 'reline' unless defined? Reline
|
||||
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
|
||||
Readline = Reline
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue