From: matt@... (matt neuburg) Date: 2009-05-04T05:15:10+09:00 Subject: Re: modules and classes question 7stud -- wrote: > When you write a method call without an object in > front of it: > > class SpecializedResource < BaseResource > def SpecializedResource.meth > do_stuff #<-------**** > end > end > > Inside meth, self is equal to the object > that called meth. Inside meth, self is equal to the object that meth is inside when it is called. It has nothing whatever to do with who *calls* meth. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com