Pat Maddox wrote:


> 
> Just to expand on David's point a little...
> 
> Since everything is an object in Ruby, you have to be in SOME context
> relating to an object.  Any time you call a method without an explicit
> receiver, the receiver defaults to self.  So in that example you end
> up calling
> self.method1
> 
> which is fine, as you'd expect.

One more question: in my previouse script what does self really refer 
to?

Thanks,

Li

-- 
Posted via http://www.ruby-forum.com/.