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

ruby-changes:5882

From: nagai <ko1@a...>
Date: Wed, 18 Jun 2008 01:54:03 +0900 (JST)
Subject: [ruby-changes:5882] Ruby:r17389 (trunk): * ext/tk/lib/multi-tk.rb: cannot access class variable from singleton method.

nagai	2008-06-18 01:53:46 +0900 (Wed, 18 Jun 2008)

  New Revision: 17389

  Modified files:
    trunk/ChangeLog
    trunk/ext/tk/lib/multi-tk.rb

  Log:
    * ext/tk/lib/multi-tk.rb: cannot access class variable from singleton method.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17389&r2=17388&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/tk/lib/multi-tk.rb?r1=17389&r2=17388&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17388)
+++ ChangeLog	(revision 17389)
@@ -1,3 +1,8 @@
+Wed Jun 18 01:51:10 2008  Hidetoshi NAGAI  <nagai@a...>
+
+	* ext/tk/lib/multi-tk.rb: cannot access class variable from
+	  singleton method. 
+
 Wed Jun 18 00:03:33 2008  NAKAMURA Usaku  <usa@r...>
 
 	* dir.c (Init_Dir): dir_foreach() takes variable argument.
Index: ext/tk/lib/multi-tk.rb
===================================================================
--- ext/tk/lib/multi-tk.rb	(revision 17388)
+++ ext/tk/lib/multi-tk.rb	(revision 17389)
@@ -2214,11 +2214,12 @@
 
 # event loop
 # all master/slave IPs are controled by only one event-loop
-class << MultiTkIp
-  def default_master?
+class MultiTkIp
+  def self.default_master?
     __getip == @@DEFAULT_MASTER
   end
-
+end
+class << MultiTkIp
   def mainloop(check_root = true)
     __getip.mainloop(check_root)
   end

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

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