[前][次][番号順一覧][スレッド一覧]

ruby-changes:13496

From: naruse <ko1@a...>
Date: Fri, 9 Oct 2009 10:14:21 +0900 (JST)
Subject: [ruby-changes:13496] Ruby:r25272 (trunk): * lib/irb/context.rb (IRB::Context#initialize):

naruse	2009-10-09 10:14:02 +0900 (Fri, 09 Oct 2009)

  New Revision: 25272

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25272

  Log:
    * lib/irb/context.rb (IRB::Context#initialize):
      remove warnings when $VERBOSE is set as true in .irbrc.

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/context.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25271)
+++ ChangeLog	(revision 25272)
@@ -1,3 +1,8 @@
+Fri Oct  9 10:12:13 2009  NARUSE, Yui  <naruse@r...>
+
+	* 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@r...>
 
 	* tool/enc-unicode.rb: optimized.
Index: lib/irb/context.rb
===================================================================
--- lib/irb/context.rb	(revision 25271)
+++ lib/irb/context.rb	(revision 25272)
@@ -35,6 +35,8 @@
       @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 @@
 	@output_method = StdioOutputMethod.new
       end
 
-      @verbose = IRB.conf[:VERBOSE]
       @echo = IRB.conf[:ECHO]
       if @echo.nil?
 	@echo = true

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]