From 234d40f30eb9b200bb4db5a1bcba8dbd0e217f13 Mon Sep 17 00:00:00 2001 From: Run Paint Run Run Date: Thu, 20 Jan 2011 18:09:23 +0000 Subject: [PATCH] Ref/BasicObject: Add private instance methods. --- src/ref/basicobject.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ref/basicobject.xml b/src/ref/basicobject.xml index 52d4323..5d6854e 100644 --- a/src/ref/basicobject.xml +++ b/src/ref/basicobject.xml @@ -19,9 +19,19 @@ ObjectBasicObject#instance_execargument{|argument, …| } Yields its arguments to the block, within which self is set to the receiver. - ObjectBasicObject#method_missingnameargument Called when the receiver is sent a message for which it has no method defined: name is the message selector as a Symbol, and argument(s) the argument(s) it was sent with. - FixnumBasicObject#__id__ Returns an identifier for the receiver which distinguishes it from all other active objects. ObjectBasicObject#__send__nameargument&block Sends a message named name to the receiver with the given argument(s) and block, returning the result. + + + + ObjectBasicObject#initializeargument Hook called by Class#new on a newly allocated object, receiving any arguments passed to Class#new. + + ObjectBasicObject#method_missingnameargument Called when the receiver is sent a message for which it has no method defined: name is the message selector as a Symbol, and argument(s) the argument(s) it was sent with. + + ObjectKernel#singleton_method_addedname Hook invoked when a singleton method is added to the receiver, where name is the method’s name as a Symbol. + + ObjectKernel#singleton_method_removedname Hook invoked when a singleton method is removed from the receiver, where name is the method’s name as a Symbol. + + ObjectKernel#singleton_method_undefinedname Hook invoked when a singleton method is undefined in the receiver, where name is the method’s name as a Symbol.