APIdock / Ruby
/
method

singleton_method_added

ruby latest stable - Class: Object

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

singleton_method_added(p1)
public

Invoked as a callback whenever a singleton method is added to the receiver.

module Chatty
 def Chatty.singleton_method_added(id )
 puts "Adding #{id.id2name}"
 end
 def self.one() end
 def two() end
 def Chatty.three() end
end

produces:

Adding singleton_method_added 
Adding one
Adding three
/*
 * Not documented
 */
static VALUE
rb_obj_dummy()
{
 return Qnil;
}

AltStyle によって変換されたページ (->オリジナル) /