aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index f35994b111..c4a5ad5cb4 100644
--- a/proc.c
+++ b/proc.c
@@ -1606,6 +1606,12 @@ method_name(VALUE obj)
* meth.original_name -> symbol
*
* Returns the original name of the method.
+ *
+ * class C
+ * def foo; end
+ * alias bar foo
+ * end
+ * C.method(:bar).original_name # => :foo
*/
static VALUE