From: Michal Rokos Date: 2002-01-06T19:55:51+09:00 Subject: [ruby-talk:30339] Re: OT: Re: Sorting a Hash by value of integer stored in the Hash Hello, nobu.nokada@softhome.net wrote: > What about this? > > module Enumerable > def to_hash(h = {}) > k = v = nil > each {|k, v| h[k] = v} > h > end > end Yes, sure, but are we able to make it part of STD. Ruby? Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail: m.rokos@sh.cvut.cz Jabber: majkl@jabber.cz, ICQ: 36118339 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-