bashar asad <baasad / qualitynet.net> wrote:

>hi
>I initialize it and it worked ... but when can I use the attr_reader as a
>short cut

 attr_reader :x

is a just shortcut for

 def x() @x end

and

 attr_writer :x

for

 def x(x) @x = x end

and finally

 attr_accessor :x

for both "def"s.

bye
-- 
Stefan Matthias Aust \/ Truth Until Paradox