[Rails] Re: Ordered hash: order breaks down pretty quickly

2010-06-10 Thread Frederick Cheung
On Jun 10, 4:09 pm, Max Williams li...@ruby-forum.com wrote: Here i'm onto the fourth pair and already the order is screwed up: Right has jumped in before Question. Can anyone explain what's going wrong here?  thanks - max OrderedHash subclasses from Hash, and the inspect method wasn't

[Rails] Re: Ordered hash: order breaks down pretty quickly

2010-06-10 Thread Max Williams
Frederick Cheung wrote: OrderedHash subclasses from Hash, and the inspect method wasn't overriden to inspect things in order (mea culpa!). if you iterate with each (or look at the keys) then you should see that things are in the right order Fred ahhh...that was you? :) Yep, on closer