and if your getter and setter is only generic you could use

attr_reader :name #for reading
attr_writer :name #for writing
attr_accessor :name #for both

-- 
Posted via http://www.ruby-forum.com/.