On 2/28/06, Minkoo Seo <minkoo.seo / gmail.com> wrote:
> It works! Thank you.
>
> But, could you tell me why should I have to use self?

The alternative would be to use @n, but I am not sure that Struct
organises these properties around individual instance variable.  it
probably keeps them in an internal hash, so you have to use the
accessor 'n'.  However, when you use it on the left handside you must
prefix with self, otherwise ruby thinks it is a variable n, rather
than a call to the attribute writer 'n='.

I am not sure if this is supposed to be a bug.. it's certainly a
surprising behaviour.

--

-- Chiaroscuro --
Liquid Development Blog: http://feeds.feedburner.com/blogspot/liquiddevelopment