mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level=
[Bug #6301] and fix irb command option: -- irb_debug_level for irb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7eb75edd4e
commit
b7d11c6942
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Dec 26 01:31:16 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
|
||||||
|
* lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level=
|
||||||
|
[Bug #6301] and fix irb command option: -- irb_debug_level for irb.
|
||||||
|
|
||||||
Wed Dec 26 00:59:18 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
Wed Dec 26 00:59:18 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
|
||||||
* lib/irb/ruby-lex.rb: improve RubyLex performance for large files
|
* lib/irb/ruby-lex.rb: improve RubyLex performance for large files
|
||||||
|
|
|
@ -100,7 +100,7 @@ module IRB
|
||||||
if @echo.nil?
|
if @echo.nil?
|
||||||
@echo = true
|
@echo = true
|
||||||
end
|
end
|
||||||
@debug_level = IRB.conf[:DEBUG_LEVEL]
|
self.debug_level = IRB.conf[:DEBUG_LEVEL]
|
||||||
end
|
end
|
||||||
|
|
||||||
# The top-level workspace, see WorkSpace#main
|
# The top-level workspace, see WorkSpace#main
|
||||||
|
@ -360,7 +360,6 @@ module IRB
|
||||||
def debug_level=(value)
|
def debug_level=(value)
|
||||||
@debug_level = value
|
@debug_level = value
|
||||||
RubyLex.debug_level = value
|
RubyLex.debug_level = value
|
||||||
SLex.debug_level = value
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Whether or not debug mode is enabled, see #debug_level=.
|
# Whether or not debug mode is enabled, see #debug_level=.
|
||||||
|
|
|
@ -197,7 +197,7 @@ module IRB # :nodoc:
|
||||||
@CONF[:CONTEXT_MODE] = ($1 || ARGV.shift).to_i
|
@CONF[:CONTEXT_MODE] = ($1 || ARGV.shift).to_i
|
||||||
when "--single-irb"
|
when "--single-irb"
|
||||||
@CONF[:SINGLE_IRB] = true
|
@CONF[:SINGLE_IRB] = true
|
||||||
when /^--irb_debug=(?:=(.+))?/
|
when /^--irb_debug(?:=(.+))?/
|
||||||
@CONF[:DEBUG_LEVEL] = ($1 || ARGV.shift).to_i
|
@CONF[:DEBUG_LEVEL] = ($1 || ARGV.shift).to_i
|
||||||
when "-v", "--version"
|
when "-v", "--version"
|
||||||
print IRB.version, "\n"
|
print IRB.version, "\n"
|
||||||
|
|
Loading…
Reference in a new issue