1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2013-02-19 04:13:57 +00:00
parent 1955ac9e82
commit e38972354a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 19 13:07:25 2013 Akinori MUSHA <knu@iDaemons.org>
* 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@zacharyscott.net> Tue Feb 19 12:30:00 2013 Zachary Scott <zachary@zacharyscott.net>
* object.c: rdoc formatting for Kernel#Array() * object.c: rdoc formatting for Kernel#Array()

View file

@ -446,7 +446,7 @@ void Init_syslog()
rb_define_module_function(mSyslog, "mask", mSyslog_get_mask, 0); 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, "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); rb_define_module_function(mSyslog, "instance", mSyslog_instance, 0);
/* Syslog options */ /* Syslog options */