summaryrefslogtreecommitdiff
path: root/lib/readline.rb
blob: 29cdf3a14f013b94e3d1fe51766266cc25051a64 (plain)
1
2
3
4
5
6
7
begin
  require 'readline.so'
rescue LoadError
  require 'reline' unless defined? Reline
  Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
  Readline = Reline
end