Hash to array

Hi,

I have a hash VALUE_OPTIONS = {:true=>1,:false=>0}
How to convert this to a Array like options= [[true,1],[false,0]]

Thanks
Ratnavel

http://www.ruby-doc.org/core/classes/Hash.html#M002872

Cheers,
Mohit.
2/6/2008 | 2:29 PM.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs