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
ts1
(ts)
2
I think I now understand attr_reader & attr_writer, but how does attr_accessor
fit into this?
Well
attr_accessor :x
is just
attr_reader :x
attr_writer :x
Now
attr :x
is the same than
attr_reader :x
and
attr :x, true
the same than
attr_accessor :x
Guy Decoux