* lib/irb/context.rb (IRB::Context#initialize):
remove warnings when $VERBOSE is set as true in .irbrc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5a4ce608e2
commit
696eec1e4f
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 9 10:12:13 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb/context.rb (IRB::Context#initialize):
|
||||||
|
remove warnings when $VERBOSE is set as true in .irbrc.
|
||||||
|
|
||||||
Fri Oct 9 02:58:18 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
Fri Oct 9 02:58:18 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* tool/enc-unicode.rb: optimized.
|
* tool/enc-unicode.rb: optimized.
|
||||||
|
@ -35,6 +35,8 @@ module IRB
|
|||||||
@load_modules = IRB.conf[:LOAD_MODULES]
|
@load_modules = IRB.conf[:LOAD_MODULES]
|
||||||
|
|
||||||
@use_readline = IRB.conf[:USE_READLINE]
|
@use_readline = IRB.conf[:USE_READLINE]
|
||||||
|
@verbose = IRB.conf[:VERBOSE]
|
||||||
|
@io = nil
|
||||||
|
|
||||||
self.inspect_mode = IRB.conf[:INSPECT_MODE]
|
self.inspect_mode = IRB.conf[:INSPECT_MODE]
|
||||||
self.math_mode = IRB.conf[:MATH_MODE] if IRB.conf[:MATH_MODE]
|
self.math_mode = IRB.conf[:MATH_MODE] if IRB.conf[:MATH_MODE]
|
||||||
@ -91,7 +93,6 @@ module IRB
|
|||||||
@output_method = StdioOutputMethod.new
|
@output_method = StdioOutputMethod.new
|
||||||
end
|
end
|
||||||
|
|
||||||
@verbose = IRB.conf[:VERBOSE]
|
|
||||||
@echo = IRB.conf[:ECHO]
|
@echo = IRB.conf[:ECHO]
|
||||||
if @echo.nil?
|
if @echo.nil?
|
||||||
@echo = true
|
@echo = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user