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

ruby-changes:27264

From: knu <ko1@a...>
Date: Tue, 19 Feb 2013 13:14:09 +0900 (JST)
Subject: [ruby-changes:27264] knu:r39316 (trunk): Remove Syslog#inspect and have only Syslog.inspect.

knu	2013-02-19 13:13:57 +0900 (Tue, 19 Feb 2013)

  New Revision: 39316

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

  Log:
    Remove Syslog#inspect and have only Syslog.inspect.
    
    * ext/syslog/syslog.c (Init_syslog): Define inspect as a singleton
      method and remove it as an instance method. [Bug #6502]

  Modified files:
    trunk/ChangeLog
    trunk/ext/syslog/syslog.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39315)
+++ ChangeLog	(revision 39316)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb 19 13:07:25 2013  Akinori MUSHA  <knu@i...>
+
+	* ext/syslog/syslog.c (Init_syslog): Define inspect as a singleton
+	  method and remove it as an instance method. [Bug #6502]
+
 Tue Feb 19 12:30:00 2013  Zachary Scott  <zachary@z...>
 
 	* object.c: rdoc formatting for Kernel#Array()
Index: ext/syslog/syslog.c
===================================================================
--- ext/syslog/syslog.c	(revision 39315)
+++ ext/syslog/syslog.c	(revision 39316)
@@ -446,7 +446,7 @@ void Init_syslog() https://github.com/ruby/ruby/blob/trunk/ext/syslog/syslog.c#L446
     rb_define_module_function(mSyslog, "mask", mSyslog_get_mask, 0);
     rb_define_module_function(mSyslog, "mask=", mSyslog_set_mask, 1);
 
-    rb_define_module_function(mSyslog, "inspect", mSyslog_inspect, 0);
+    rb_define_singleton_method(mSyslog, "inspect", mSyslog_inspect, 0);
     rb_define_module_function(mSyslog, "instance", mSyslog_instance, 0);
 
     /* Syslog options */

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

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