From: Rubyist Rohit Date: 2012-09-01T20:59:15+09:00 Subject: Re: Constructor or a Method > Note that both the method definitions are useless here, as using > attr_accessor > already creates two methods doing exactly what your hand-written methods > do. > > Stefano @Stefano; What if I use 'attr_reader' instead of 'attr_accessor'? Is 'attr_accessor' similar to auto-properties in .NET? I am talking about those getters and setters in .NET. -- Posted via http://www.ruby-forum.com/.