mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
e19b656409
When already set by `use_lib_reline` in test/readline/helper.rb of readline-ext. https://github.com/ruby/readline/commit/0e3ca3b217
7 lines
189 B
Ruby
7 lines
189 B
Ruby
begin
|
|
require 'readline.so'
|
|
rescue LoadError
|
|
require 'reline' unless defined? Reline
|
|
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
|
|
Readline = Reline
|
|
end
|