From: Robert Gleeson Date: 2009-10-24T17:34:01+09:00 Subject: Re: Setting attribute via send in Ruby 1.8.6 Hello, > Example: > > class A > attr_reader :foo > attr_writer :foo > end You can accomplish this is one line with attr_accessor :foo . I think every poster has said this, but attr_reader defines: class A def foo @foo end end While attr_writer defines: class A def foo= value @foo = value end end Hope this helps, Rob -- Posted via http://www.ruby-forum.com/.