From: Daniel Berger Date: 2010-04-12T23:50:45+09:00 Subject: Re: attr_accessor, but for a boolean On Apr 11, 7:00 pm, Albert Schlef wrote: > Let's say I have this code: > > class Mambo >   attr_accesstor :safe > end > > Now, > > 'safe', in my case, is a boolean. Problem is, the getter will be named > 'safe', whereas I want it to be 'safe?'. > > In other words, how do I make the getter 'safe?' and the setter 'safe' > ? Wouldn't that have been nice? http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/5796 Regards, Dan