From: Daniel Berger Date: 2007-11-18T04:11:36+09:00 Subject: Re: Hash -> Struct Trans wrote: > Given that a hash is not ordered, is this reliable? > > h = { :a=>1, :b=>2 } > Struct.new(*h.keys).new(*h.values) > => # a=1, b=2> Code Snippet #1 on RubyForge. :) http://rubyforge.org/snippet/detail.php?type=snippet&id=1 Regards, Dan