1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_method.c (obj_respond_to_missing): added rdoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-25 03:33:26 +00:00
parent 2c549ad5d3
commit 44f7a34031

View file

@ -1163,6 +1163,9 @@ rb_respond_to(VALUE obj, ID id)
* If the method is not implemented, * If the method is not implemented,
* as Process.fork on Windows, File.lchmod on GNU/Linux, etc., * as Process.fork on Windows, File.lchmod on GNU/Linux, etc.,
* false is returned. * false is returned.
*
* If the method is not defined, <code>respond_to_missing?</code>
* method is called and the result is returned.
*/ */
static VALUE static VALUE
@ -1178,6 +1181,15 @@ obj_respond_to(int argc, VALUE *argv, VALUE obj)
return Qfalse; 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 static VALUE
obj_respond_to_missing(int argc, VALUE *argv, VALUE obj) obj_respond_to_missing(int argc, VALUE *argv, VALUE obj)
{ {