att_accessor lets you do attr_reader and attr_writer at the same time.
(Wow, this is the first time I have answered a question on here, instead of
asked one!)
Mark
···
-----Original Message-----
From: christopher.j.meisenzahl@citicorp.com
[mailto:christopher.j.meisenzahl@citicorp.com]
Sent: 21 November 2002 13:41
To: ruby-talk@ruby-lang.org
Subject: attr_accessor?
I think I now understand attr_reader & attr_writer, but how does
attr_accessor
fit into this?
Thanks very much in advance,
Christopher
Christopher J. Meisenzahl CPS, CSTE
Senior Software Testing Consultant
Spherion
christopher.j.meisenzahl@citicorp.com
NOTICE: This e-mail and any attachment(s) may contain confidential and
proprietary information of Goss International Corporation and/or its
subsidiaries and may be legally privileged. This e-mail is intended solely
for the addressee. If you are not the addressee, dissemination, copying or
other use of this e-mail or any of its content is strictly prohibited and
may be unlawful. If you are not the intended recipient please inform the
sender immediately and destroy the e-mail and any copies. All liability for
viruses is excluded to the fullest extent permitted by law. Any views
expressed in this message are those of the individual sender. No contract
may be construed by this e-mail.