Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: ordered hashes/ yaml?
ara.t.howard
8/3/2007 1:04:00 AM
On Aug 1, 2007, at 11:56 PM, d c wrote:
> hi -
>
> i understand hashes dont keep their order in ruby, so wondering
> what the
> most elegant way to create some YAML that i want to maintain order
> is...
>
> for a simple menu system, i have a YAML file currently as:
>
> section1:
> link1: home
> link2: my page
> link3: logout
>
> section2:
> ... etc
>
http://draw...
po...
enjoy.
a @
http://draw...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: ordered hashes/ yaml?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password