From: Daniel N Date: 2006-11-07T00:27:32+09:00 Subject: Re: Include and Extend Again.... ------=_Part_57614_30941667.1162826848250 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/7/06, Jan Svitok wrote: > > > Your problem is, that Class.is_a? Object i.e. object Class is an > instance of class Object. > Therefore all instance methods of Object are class methods (or vice > versa, I'm getting lost a bit ;-) Well that works a treat. I changed the class definition to class Thing include A end and it worked great. The incestuous relationship between Object and Class has not really raised it's head as a problem for me before so it didn't even enter my mind. Thanx for pointing it out. Second issue: your instance methods: you can simply put them in main A > module (as rails does), or add include InstanceMethods line at the end > of A module definition and thus you can leave out the > base.send(:include) line Thanx for that. I had a feeling that might be the case. With the other error I was just unsure. module A > ... > include InstanceMethods > end > > Thanx very much for your reply. Daniel ------=_Part_57614_30941667.1162826848250--