[LRUG] attr_accessor parsed as a method variable when setting with a get
Jordi Noguera Leon
jordinoguera83 at gmail.com
Wed Sep 21 03:28:57 PDT 2011
>
>
> > 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.
>
>
configuration=(value) is the setter of @configuration...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20110921/6fa6e826/attachment-0003.html>
More information about the Chat
mailing list