Attributes

Hi,

What is attr_reader, attr_writer ? Explain with any example.

Thanks…
Prabu J

[email protected]

2009/2/26 Prabu J. [email protected]

Hi,

What is attr_reader, attr_writer ? Explain with any example.

This is very early on in the pickaxe… they allow you to specify
instances
variables that can be read and written directly from outside the
instance.

Mark

On Thu, Feb 26, 2009 at 1:07 PM, Prabu J. [email protected]
wrote:

Hi,

What is attr_reader, attr_writer ? Explain with any example.

This might help:

First hit is a ruby introductory guide, where this is explained with
examples.

Jesus.