diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-09 01:14:02 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-09 01:14:02 +0000 |
commit | 696eec1e4f9ff82e0331c1198bf2c8983b30e8e4 (patch) | |
tree | 29c8ff84d8e8113545a2cdeaed9ab0ee2e09a90b | |
parent | 5a4ce608e28068ffc149e869a4bcf6d8c48ca45d (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/irb/context.rb | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Oct 9 10:12:13 2009 NARUSE, Yui <[email protected]> + + * 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 <[email protected]> * tool/enc-unicode.rb: optimized. diff --git a/lib/irb/context.rb b/lib/irb/context.rb index a2778f76ab..d7822d6f27 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -35,6 +35,8 @@ module IRB @load_modules = IRB.conf[:LOAD_MODULES] @use_readline = IRB.conf[:USE_READLINE] + @verbose = IRB.conf[:VERBOSE] + @io = nil self.inspect_mode = IRB.conf[:INSPECT_MODE] self.math_mode = IRB.conf[:MATH_MODE] if IRB.conf[:MATH_MODE] @@ -91,7 +93,6 @@ module IRB @output_method = StdioOutputMethod.new end - @verbose = IRB.conf[:VERBOSE] @echo = IRB.conf[:ECHO] if @echo.nil? @echo = true |