From: Dave Aronson Date: 2011-10-05T00:52:30+09:00 Subject: Re: Operator Overloading On Tue, Oct 4, 2011 at 10:03, Brian Candler wrote: > (Of course, 'x' and 'self.x' are the same; you can write 'self.x' if you > think it's clearer) Not quite. This is one of Ruby's little gotchas. A naked "x" will be taken as a local variable in the method. If you want to use an instance variable you *must* precede it with either "self." or "@". -Dave -- LOOKING FOR WORK, preferably Ruby on Rails, in NoVa/DC; see main web site. Main Web Site: davearonson.com Programming Blog: codosaur.us Excellence Blog: dare2xl.com