[LRUG] attr_accessor parsed as a method variable when setting with a get

Paul Robinson paul at 32moves.com
Wed Sep 21 03:24:14 PDT 2011


On 21 Sep 2011, at 11:17, Max Williams wrote:

> self.configuration is also more readable, ie more obviously a method call.


Yes, but "configuration" in this scenario is not a method. It's an instance variable. @configuration is the right syntax for referencing it.


More information about the Chat mailing list