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

thankx
m Freeze wrote:

> On Thu, 24 May 2001, bashar asad wrote:
>
> > hello;
> > am very new to ruby...and am trying to use attr_reader to create the
> > accessor methods like this
> >
> > class SomeClass
> >     attr_reader :name1 , :name2
> > end
> > nClass = SomeClass.new("hello","hello")
> >
> > it bombs on SomeClass.new
>
> You need to define initialize
>
>   class SomeClass
>     def initialize(name1, name2)
>       #your code here
>     end
>   end
>
> =========================================================
> Jim Freeze
> jim / freeze.org
> ---------------------------------------------------------
> No comment at this time.
> http://www.freeze.org
> =========================================================

--
Bashar A. Asad