diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 06:17:11 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-10 06:17:11 +0000 |
| commit | 9cb7e8d4a8269a2992232f535ab9e3561d7ecbe9 (patch) | |
| tree | 19ca2dd67aae09c61ff86161411583bffbd84997 /eval.c | |
| parent | bec77ef49adfa3192c53f681236b189f02068f8f (diff) | |
| download | ruby-9cb7e8d4a8269a2992232f535ab9e3561d7ecbe9.tar.gz ruby-9cb7e8d4a8269a2992232f535ab9e3561d7ecbe9.tar.xz ruby-9cb7e8d4a8269a2992232f535ab9e3561d7ecbe9.zip | |
* commit miss.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -7699,6 +7699,15 @@ rb_exec_end_proc(void) * If called from inside of an aliased method it will return the original * nonaliased name. * If called outside of a method, it returns <code>nil</code>. + * + * def foo + * __method__ + * end + * alias bar foo + * + * foo # => :foo + * bar # => :foo + * * See also <code>\_\_callee__</code>. * */ @@ -7723,6 +7732,15 @@ rb_f_method_name(void) * If called from inside of an aliased method it will return the aliased * name. * If called outside of a method, it returns <code>nil</code>. + * + * def foo + * __callee__ + * end + * alias bar foo + * + * foo # => :foo + * bar # => :bar + * * See also <code>\_\_method__</code>. * */ @@ -8465,6 +8483,7 @@ rb_proc_yield(int argc, VALUE *argv, VALUE proc) return proc_invoke(proc, rb_ary_new4(argc, argv), Qundef, 0, 0); } +/* :nodoc: */ static VALUE nil_yield(int argc, VALUE *argv) { |
