From: Edwin Eyan Moragas Date: 2004-09-02T13:53:29+09:00 Subject: Re: nuby question: question marks in method names thank yopu all for the replies. these gave me more insight into how things in ruby are done. On Thu, 2 Sep 2004 10:43:45 +0900, William Morgan wrote: > Excerpts from nobu.nokada@softhome.net's mail of 30 Aug 2004 (EDT): > > class Module > > def attr_bool sym > > attr_accessor sym > > alias_method "#{sym}?", sym > > remove_method sym > > end > > end > > It's a minor issue, but I think this is more consistent with the > attr_accessor behavior: > > class Module > def bool_accessor *syms > attr_accessor *syms > syms.each { |sym| alias_method "#{sym}?", sym } > remove_method *syms > end > end > > -- > William > > -- Edwin Eyan Moragas Main Expectorant haaktu technologies spewing spit since '73