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/.