aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/context.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/irb/context.rb
parent91faab7f1477c65f71aee8324cdeca7b6f19434a (diff)
downloadruby-7f273ac6d0f05208b5b228da95205e20c0e8286c.tar.gz
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/irb/context.rb')
-rw-r--r--lib/irb/context.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index e8e6a118e6..f8a6009d17 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -101,7 +101,6 @@ module IRB
if @echo.nil?
@echo = true
end
- self.debug_level = IRB.conf[:DEBUG_LEVEL]
end
# The top-level workspace, see WorkSpace#main
@@ -211,10 +210,6 @@ module IRB
#
# A copy of the default <code>IRB.conf[:VERBOSE]</code>
attr_accessor :verbose
- # The debug level of irb
- #
- # See #debug_level= for more information.
- attr_reader :debug_level
# The limit of backtrace lines displayed as top +n+ and tail +n+.
#
@@ -361,21 +356,6 @@ module IRB
print "Do nothing."
end
- # Sets the debug level of irb
- #
- # Can also be set using the +--irb_debug+ command line option.
- #
- # See IRB@Command+line+options for more command line options.
- def debug_level=(value)
- @debug_level = value
- RubyLex.debug_level = value
- end
-
- # Whether or not debug mode is enabled, see #debug_level=.
- def debug?
- @debug_level > 0
- end
-
def evaluate(line, line_no, exception: nil) # :nodoc:
@line_no = line_no
if exception