Subject: Re: symbol to true object
From: Brian Candler <B.Candler pobox.com>
Date: Mon, 26 Feb 2007 18:39:27 +0900
References: 240847
In-reply-to: 240847
On Mon, Feb 26, 2007 at 04:19:13PM +0900, Nasir Khan wrote:
> Is there an idiom to convert the symbol :true to object true (of TrueClass)?
BOOL_MAP = { :true=>true, :false=>false }
BOOL_MAP[sym_arg]