From: Marc Heiler Date: 2006-10-13T21:35:37+09:00 Subject: Re: attr_reader + attr_writer? Jeremy Woertink wrote: > Joe Ruby MUDCRAP-CE wrote: >> Is there a class method that combines attr_reader and attr_writer? I >> thought I remember seeing some "cattr_*" method, but don't know what >> that was. >> >> Thanks, >> Joe > > I'm still new to this whole ruby and programming stuff, but doesn't > attr_accessor do both of those? yes, attr_accessor does this. I was also toying with an attr_reader that allows ? for read-vars ... ruby triggers crazy ideas. A haskell guy once said that he liked ? at end of method names in Ruby. ;-) -- Posted via http://www.ruby-forum.com/.