diff options
author | aycabta <aycabta@gmail.com> | 2019-04-28 03:41:06 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-04-30 14:40:06 +0900 |
commit | 94b740b2499242e1aca67f7bbf595e75e63abc40 (patch) | |
tree | a25a0b1aa3928968f8c0716fed98c4005f6fcb18 /lib/irb/context.rb | |
parent | 567cb1ae1d25b837bed6e91af1418c6a4f25cc90 (diff) | |
download | ruby-94b740b2499242e1aca67f7bbf595e75e63abc40.tar.gz |
Use Ripper for IRB
The debug option of IRB is deleted because it's just for IRB's pure Ruby
parser.
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r-- | lib/irb/context.rb | 20 |
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 |