aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:00:56 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:00:56 +0000
commitf6ea3cc675d3c2e7182713ad40e3b87a054547d5 (patch)
tree5ade0eea86784750f84c4791e7713ae5a44bef0f
parentc9baf1fabff8768e240533ce5399e1517db636b2 (diff)
downloadruby-f6ea3cc675d3c2e7182713ad40e3b87a054547d5.tar.gz
* proc.c: Add call-seq of `Method#super_method`
[ci skip][fix GH-1094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--proc.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8749983181..dce42dfdb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Nov 16 15:59:14 2015 yui-knk <spiketeika@gmail.com>
+
+ * proc.c: Add call-seq of `Method#super_method`
+ [ci skip][fix GH-1094]
+
Mon Nov 16 15:58:39 2015 Kenichi Kamiya <kachick1@gmail.com>
* struct.c: Standardize a method signature of Struct#[]=.
diff --git a/proc.c b/proc.c
index 6cbe08cae8..c88c676729 100644
--- a/proc.c
+++ b/proc.c
@@ -2540,8 +2540,13 @@ method_to_proc(VALUE method)
}
/*
- * Returns a Method of superclass, which would be called when super is used.
+ * call-seq:
+ * meth.super_method -> method
+ *
+ * Returns a Method of superclass which would be called when super is used
+ * or nil if there is no method on superclass.
*/
+
static VALUE
method_super_method(VALUE method)
{