Subject: Re: nuby question: question marks in method names
From: Edwin Eyan Moragas <haaktu gmail.com>
Date: Mon, 30 Aug 2004 19:51:54 +0900
References: 110941
In-reply-to: 110941
thank you very much. :-)
> class Module
> def attr_bool sym
> module_eval <<-CODE
> def #{sym}?; @#{sym}; end
> def #{sym}=(s); @#{sym}=s; end
> CODE
> end
> end
>
>
--
Edwin Eyan Moragas
Main Expectorant
haaktu technologies
spewing spit since '73