From: "Eustáquio Rangel" Date: 2007-08-29T19:26:39+09:00 Subject: Re: Where is the define_singleton_method method? Nobuyoshi Nakada wrote: > No such method is defined. Thanks for your answer, but now I'm kind of lost here. There's a reference of the method here: http://www.ruby-doc.org/core-1.9/classes/Object.html#M000330 And here, where I got the previous samples: http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9#l29 And also on the Changelog, from Matz!: Mon Oct 9 01:56:34 2006 Yukihiro Matsumoto * eval.c (rb_obj_define_method): add new method Kernel#define_singleton_method. [ruby-list:42851] I got the latest trunk using: svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby I searched for rb_obj_define_method on the C code but could not find any code for it. Searching for rb_define_singleton_method returns me a lot of references of its internal use (as C code) and its definition on class.c, but not as a method we can reach from the language, without a thing like 'rb_define_method(rb_mKernel, "define_singleton_method", rb_obj_instance_eval, -1);' there. So, I'm lost, what happened with this method? :-) Thanks again! -- Posted via http://www.ruby-forum.com/.