summaryrefslogtreecommitdiff
path: root/ext/syslog/syslog.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-19 04:13:57 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-19 04:13:57 +0000
commite38972354acc3b3195b0bb639cce305cd2f97b0c (patch)
tree6729b91cc5340a7f94b74dc9938912a4bd78b997 /ext/syslog/syslog.c
parent1955ac9e820f4f42debe889643104cce8cc3cacc (diff)
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
Diffstat (limited to 'ext/syslog/syslog.c')
-rw-r--r--ext/syslog/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index 3454183..347fd4b 100644
--- a/ext/syslog/syslog.c
+++ b/ext/syslog/syslog.c
@@ -446,7 +446,7 @@ void Init_syslog()
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 */