Hi,
What is attr_reader, attr_writer ? Explain with any example.
Thanks...
Prabu J
···
--
Posted via http://www.ruby-forum.com/.
Hi,
What is attr_reader, attr_writer ? Explain with any example.
Thanks...
Prabu J
--
Posted via http://www.ruby-forum.com/.
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
2009/2/26 Prabu Jayaraman <jprabu2010@gmail.com>
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.
On Thu, Feb 26, 2009 at 1:07 PM, Prabu Jayaraman <jprabu2010@gmail.com> wrote:
Hi,
What is attr_reader, attr_writer ? Explain with any example.