From: Daniel Martin Date: 2007-12-02T07:05:39+09:00 Subject: Re: problem with 'self'. behaves different on setting and gettin One minor correction to an otherwise perfectly fine explanation: Jari Williamsson writes: > Yes, but with different result behind the scenes. 'x' is the same as > 'x()', while 'self.x' is the same a '@x' Not quite. self.x is the same as x(), but: self.x = ... is the same as self.x=(...). The connection to @x only happens because of the definition for the x= method in the orginal post. -- s=%q( Daniel Martin -- martin@snowplow.org puts "s=%q(#{s})",s.to_a.last ) puts "s=%q(#{s})",s.to_a.last