From: "David A. Black" Date: 2007-11-09T10:35:45+09:00 Subject: Re: 'Class.inherited' v. 'inherited' syntax inside Class Hi -- On Fri, 9 Nov 2007, Phrogz wrote: > On Nov 8, 4:32 pm, "David A. Black" wrote: >> class Class >> def an_instance_method >> puts "I'm an instance method of Class" >> end >> end >> >> class C >> def a_singleton_method >> puts "I'm a singleton method of C" >> end >> end >> >> C.an_instance_method >> C.a_singleton_method > > O.o > > David, I suggest that your example above is missing one of: > "self." > "C." > "class << self...end" wrapper > > Right? Tell me I'm not insane. I can't vouch for your sanity :-) But you (and Gary) are totally (W)right about my error. Thanks for pointing it out; it should indeed be def C.a_singleton_method (at least, that's the form I meant to use, to mirror the def Class.inherited example). David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Edison, NJ, November 6-9 * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!