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

ruby-changes:54170

From: nobu <ko1@a...>
Date: Fri, 14 Dec 2018 10:29:29 +0900 (JST)
Subject: [ruby-changes:54170] nobu:r66391 (trunk): Suppress uninitialized instance variable warnings

nobu	2018-12-14 10:29:23 +0900 (Fri, 14 Dec 2018)

  New Revision: 66391

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66391

  Log:
    Suppress uninitialized instance variable warnings

  Modified files:
    trunk/test/io/console/test_io_console.rb
Index: test/io/console/test_io_console.rb
===================================================================
--- test/io/console/test_io_console.rb	(revision 66390)
+++ test/io/console/test_io_console.rb	(revision 66391)
@@ -14,7 +14,7 @@ class TestIO_Console < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L14
   end
 
   def set_winsize_teardown
-    trap(:TTOU, @old_ttou) if @old_ttou
+    trap(:TTOU, @old_ttou) if defined?(@old_ttou) and @old_ttou
   end
 end
 

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

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