From: Hans Mackowiak Date: 2011-10-06T17:47:35+09:00 Subject: Re: NameError problem 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/.