Skip to content

Commit

Permalink
Ref/BasicObject: Add private instance methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
runpaint committed Jan 20, 2011
1 parent 788916b commit 234d40f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/ref/basicobject.xml
Expand Up @@ -19,9 +19,19 @@

<para><methodsynopsis><type>Object</type><methodname>BasicObject#instance_exec</methodname><methodparam choice="opt" rep="repeat"><parameter>argument</parameter></methodparam><methodparam><parameter>{|argument, …| }</parameter></methodparam></methodsynopsis> Yields its arguments to the block, within which <literal>self</literal> is set to the receiver.</para>

<para><methodsynopsis><type>Object</type><methodname>BasicObject#method_missing</methodname><methodparam><parameter>name</parameter></methodparam><methodparam choice="opt" rep="repeat"><parameter>argument</parameter></methodparam></methodsynopsis> Called when the receiver is sent a message for which it has no method defined: <parameter>name</parameter> is the message selector as a <literal>Symbol</literal>, and <parameter>argument</parameter>(s) the argument(s) it was sent with.</para>

<para><methodsynopsis><type>Fixnum</type><methodname>BasicObject#__id__</methodname><void/></methodsynopsis> Returns an identifier for the receiver which distinguishes it from all other active objects.</para>

<para><methodsynopsis><type>Object</type><methodname>BasicObject#__send__</methodname><methodparam><parameter>name</parameter></methodparam><methodparam choice="opt" rep="repeat"><parameter>argument</parameter></methodparam><methodparam choice="opt"><parameter>&amp;block</parameter></methodparam></methodsynopsis> Sends a message named <parameter>name</parameter> to the receiver with the given <parameter>argument</parameter>(s) and <parameter>block</parameter>, returning the result.</para>

<!-- Private instance methods -->

<para><methodsynopsis><type>Object</type><methodname>BasicObject#initialize</methodname><methodparam choice="opt" rep="repeat"><parameter>argument</parameter></methodparam></methodsynopsis> Hook called by <function>Class#new</function> on a newly allocated object, receiving any arguments passed to <function>Class#new</function>.</para>

<para><methodsynopsis><type>Object</type><methodname>BasicObject#method_missing</methodname><methodparam><parameter>name</parameter></methodparam><methodparam choice="opt" rep="repeat"><parameter>argument</parameter></methodparam></methodsynopsis> Called when the receiver is sent a message for which it has no method defined: <parameter>name</parameter> is the message selector as a <literal>Symbol</literal>, and <parameter>argument</parameter>(s) the argument(s) it was sent with.</para>

<para><methodsynopsis><type>Object</type><methodname>Kernel#singleton_method_added</methodname><methodparam><parameter>name</parameter></methodparam></methodsynopsis> Hook invoked when a singleton method is added to the receiver, where <parameter>name</parameter> is the method’s name as a <literal>Symbol</literal>.</para>

<para><methodsynopsis><type>Object</type><methodname>Kernel#singleton_method_removed</methodname><methodparam><parameter>name</parameter></methodparam></methodsynopsis> Hook invoked when a singleton method is removed from the receiver, where <parameter>name</parameter> is the method’s name as a <literal>Symbol</literal>.</para>

<para><methodsynopsis><type>Object</type><methodname>Kernel#singleton_method_undefined</methodname><methodparam><parameter>name</parameter></methodparam></methodsynopsis> Hook invoked when a singleton method is undefined in the receiver, where <parameter>name</parameter> is the method’s name as a <literal>Symbol</literal>.</para>
</appendix>

0 comments on commit 234d40f

Please sign in to comment.