ruby-changes:13323
From: nobu <ko1@a...>
Date: Fri, 25 Sep 2009 12:33:35 +0900 (JST)
Subject: [ruby-changes:13323] Ruby:r25087 (trunk): * vm_method.c (obj_respond_to_missing): added rdoc.
nobu 2009-09-25 12:33:26 +0900 (Fri, 25 Sep 2009) New Revision: 25087 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25087 Log: * vm_method.c (obj_respond_to_missing): added rdoc. Modified files: trunk/vm_method.c Index: vm_method.c =================================================================== --- vm_method.c (revision 25086) +++ vm_method.c (revision 25087) @@ -1163,6 +1163,9 @@ * 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 @@ 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/