From: Devi Web Development Date: 2007-09-02T08:12:43+09:00 Subject: Re: attr_reader ------=_Part_2595_6077476.1188688361782 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline You do have to make your own class Song def initialize(x, y, z) @x = x @y = y @z = z end end song=Song.new(x,y,z) then attr_reader will make the methods song.x, song.y, and song.z attr_accessor will make the methods song.x, song.x=, song.y, song.y=, song.z, and song.z= attr_writer I know exists, but have never actually used. attr(:method,false) == attr(:method) == attr_reader(:method) attr(:method,true) == attr_accessor(:method) ------------------------------------------ Daniel Brumbaugh Keeney Devi Web Development Devi.WebMaster@gMail.com ------=_Part_2595_6077476.1188688361782--