diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 03:33:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 03:33:26 +0000 |
commit | 74b780933421ae58eebbf762bc826015da440e0f (patch) | |
tree | 7f080150e0f8fcb5c9eeaa48f767a4f867c8df4f /vm_method.c | |
parent | 49a2777acfdc5488dc1e3c38951e481be0fbba33 (diff) | |
download | ruby-74b780933421ae58eebbf762bc826015da440e0f.tar.gz ruby-74b780933421ae58eebbf762bc826015da440e0f.tar.xz ruby-74b780933421ae58eebbf762bc826015da440e0f.zip |
* vm_method.c (obj_respond_to_missing): added rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index 014840d7d..0db125bb1 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1163,6 +1163,9 @@ rb_respond_to(VALUE obj, ID id) * If the method is not implemented, * as Process.fork on Windows, File.lchmod on GNU/Linux, etc., * false is returned. + * + * If the method is not defined, <code>respond_to_missing?</code> + * method is called and the result is returned. */ static VALUE @@ -1178,6 +1181,15 @@ obj_respond_to(int argc, VALUE *argv, VALUE obj) return Qfalse; } +/* + * call-seq: + * obj.respond_to_missing?(symbol, include_private=false) => true or false + * + * Hook method to return whether the _obj_ can respond to _id_ method + * or not. + * + * See #respond_to?. + */ static VALUE obj_respond_to_missing(int argc, VALUE *argv, VALUE obj) { |