Attributes


#1

Hi,

What is attr_reader, attr_writer ? Explain with any example.

Thanks…
Prabu J

removed_email_address@domain.invalid


#2

2009/2/26 Prabu J. removed_email_address@domain.invalid

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


#3

On Thu, Feb 26, 2009 at 1:07 PM, Prabu J. removed_email_address@domain.invalid
wrote:

Hi,

What is attr_reader, attr_writer ? Explain with any example.

This might help:

http://lmgtfy.com/?q=ruby+attr_reader

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

Jesus.