Hi --

On Sat, 18 Jan 2003, ahoward wrote:

> On Sat, 18 Jan 2003 dblack / candle.superlink.net wrote:
>
> > See <http://www.rubygarden.com/article.php?sid=110> -- there was a
> > (rejected) RCR for Symbol.new, with some commentary from Matz.
>
> i have done
>
>   def Symbol.[] s
>     s.to_s.intern
>   end
>
>
> which makes intuitive sense to me :
>
>   Symbol['method'] >> :method

With a string maybe, but I'm not sure about generalizing it.  It's a
kind of loose fit for other objects:

  Symbol[ { "one" => 1 } ]     #  :one1


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav