From: Sebastian Hungerecker Date: 2009-04-02T07:15:11+09:00 Subject: Re: When to use instance variables @ Adam Gardner wrote: > It's also mandatory if you have a method with the same name as a local > variable, or whose name begins with a capital letter (although frankly, > you probably should just change the method name or the variable name in > these cases) In that case you can just add parens instead of prefixing self: def x 42 end x=23 [x, x(), self.x] #=> [23, 42, 42]