summaryrefslogtreecommitdiff
path: root/lib/irb/context.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-30 02:08:16 +0900
committeraycabta <aycabta@gmail.com>2021-08-30 02:45:13 +0900
commitece4ed0da715218168e264aa7067113d48d38a3d (patch)
treea383f9ed44f04681ad0992efdcef2da8ef2b4227 /lib/irb/context.rb
parentb6b2b767ed50cb29d7abb96ab9dcee552cc0470a (diff)
Add --autocomplete / --noautocomplete options
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r--lib/irb/context.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index 0d358de6ff..3827bda438 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -54,6 +54,7 @@ module IRB
@use_multiline = nil
end
@use_colorize = IRB.conf[:USE_COLORIZE]
+ @use_autocomplete = IRB.conf[:USE_AUTOCOMPLETE]
@verbose = IRB.conf[:VERBOSE]
@io = nil
@@ -185,6 +186,8 @@ module IRB
#
# A copy of the default <code>IRB.conf[:USE_COLORIZE]</code>
attr_reader :use_colorize
+ # A copy of the default <code>IRB.conf[:USE_AUTOCOMPLETE]</code>
+ attr_reader :use_autocomplete
# A copy of the default <code>IRB.conf[:INSPECT_MODE]</code>
attr_reader :inspect_mode
@@ -311,6 +314,8 @@ module IRB
alias use_readline? use_singleline
# Alias for #use_colorize
alias use_colorize? use_colorize
+ # Alias for #use_autocomplete
+ alias use_autocomplete? use_autocomplete
# Alias for #rc
alias rc? rc
alias ignore_sigint? ignore_sigint