From: "Jan E." Date: 2012-09-01T21:07:42+09:00 Subject: Re: Constructor or a Method Rubyist Rohit wrote in post #1074199: > What if I use 'attr_reader' instead of 'attr_accessor'? This will only define a getter. And attr_writer will only define a setter. attr_accessor does both. > Is 'attr_accessor' similar to auto-properties in .NET? I am talking > about those getters and setters in .NET. Looks like it. -- Posted via http://www.ruby-forum.com/.