From: Albert Schlef Date: 2010-04-12T14:35:13+09:00 Subject: Re: attr_accessor, but for a boolean Albert Schlef wrote: > Thank you both. I wanted to make sure there's no built-in way to do > this. Hey, I've just discovered that 'ri' tells me that Module has an 'attr_reader?' method that creates a question-mark attribute. Problem is, 'ri' displays methods from everything I've installed on my system, so I can't know if 'attr_reader?' is provided by Ruby itself or by some wacky gem. -- Posted via http://www.ruby-forum.com/.