ruby/lib/readline.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 строки
189 B
Ruby
Исходник Обычный вид История

begin
require 'readline.so'
rescue LoadError
2019-10-23 17:58:59 +03:00
require 'reline' unless defined? Reline
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
Readline = Reline
end