or
Hash[*str.split(/=|,/)]
cheers
Simon
or
Hash[*str.split(/=|,/)]
cheers
Simon
Hi –
On Wed, 26 Apr 2006, Kroeger, Simon (ext) wrote:
David
or
Hash[*str.split(/=|,/)]
Oh, right – or that Another demonstration of the principle that
as one works on Ruby code it evaporates from the screen, and becomes
clearer rather than more cryptic.
David
–
David A. Black ([email protected])
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)
“Ruby for Rails” PDF now on sale! Ruby for Rails
Paper version coming in early May!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs