From: Mark Hubbart Date: 2004-08-07T05:09:27+09:00 Subject: Re: %w for symbols On Aug 6, 2004, at 8:41 AM, Ara.T.Howard wrote: > we are already down that path > > jib:~ > ruby -r yaml -e 'y %w(abc hi there)' > --- > - abc > - hi > - there > > eg. there is not %w equivalent of ["abc", "hi there"] and this has > not been a > problem. This was mentioned elsewhere on this thread, I believe: %w(abc hi\ there) ==>["abc", "hi there"] > and you could never need > > hash['hi there'.intern] > > since you could not type > > hash[:hi there] hash[:"hi there"] I've used symbols with embedded spaces before, in hashes. It seems odd to use them in method names, but as someone else pointed out, it does work... cheers, Mark