Imported File#ftype spec from rubyspecs.
[rbx.git] / lib / readline.rb
blob5c6c5a7933fb743ac87f12764abf961ddcc6613b
1 begin
2   require 'ext/readline/readline'
4   Readline::HISTORY.extend Enumerable
6   module Readline
7     def self.readline(prompt="", add_hist=true)
8       perform_readline(prompt, add_hist)
9     end
11     def readline(prompt="", add_hist=true)
12       Readline.perform_readline(prompt, add_hist)
13     end
14   end
15 rescue
16   require 'readline-native'
17 end