From: Robert Klemme Date: 2007-06-06T18:00:21+09:00 Subject: concept of self (was: Re: David Black's book _Ruby for Rails) On 06.06.2007 03:24, Daniel Waite wrote: > What I got most from it was its *incredibly thorough* explanation of the > concept of 'self' in Ruby. Moments after finishing the chapter on self I > ran to _why's creature code and, line by line, explained exactly what it > was doing. I was so proud of myself. :) You make it sound as if there was something complex about "self". Makes me wonder whether I am missing something about "self". As far as I can see "self" is an ordinary variable with these additional properties: - it is automatically set to the current receiver and it cannot be altered by Ruby code - it is implicitly used for method invocations without an explicit receiver and for instance variable access Did I miss anything? Kind regards robert