summaryrefslogtreecommitdiff
path: root/lib/readline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-20 08:51:20 +0000
committeraycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-20 08:51:20 +0000
commit7f273ac6d0f05208b5b228da95205e20c0e8286c (patch)
treebfec81d78d487c6d8015f26fd6a5740cfef63d31 /lib/readline.rb
parent91faab7f1477c65f71aee8324cdeca7b6f19434a (diff)
IRB is improved with Reline and RDoc
Reline is a readline stdlib compatible library. It also supports multiline input. IRB is improved with Reline and supports multiline. Besides, supports showing documents when completed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/readline.rb')
-rw-r--r--lib/readline.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/readline.rb b/lib/readline.rb
new file mode 100644
index 0000000000..690441e05c
--- /dev/null
+++ b/lib/readline.rb
@@ -0,0 +1,6 @@
+begin
+ require 'readline.so'
+rescue LoadError
+ require 'reline'
+ Readline = Reline
+end