Jim Freeze <jim / freeze.org> writes:

> module Notes
>   attr :concertA
>   def tuning(amt)
>     @concertA = 440.0 + amt
>   end
> end

> I don't understand where the instance method 'concertA' is defined. I see
> that the instance variable '@concertA' is defined.

the 'attr' line defines an accessor method (called concertA) for the
instance variable @concertA.


Dave