On Feb 3, 12:12 pm, "Trans" <transf... / gmail.com> wrote:
> I think it would be a good candidate for Ruby proper -- even 1.8
> series. Though it will undoubtedly be less useful in Ruby 2.0 when
> string and symbol hash keys key for the same entry, it is still useful
> in other ways. Here it is my implementation... note that
> Symbol#to_proc is used.
>
> [snip]

Sheesh I forgot the most basic examples!

  { "a"=>1, :b=>2}.rekey  #=>   { :a=>1, :b=>2}
  { "a"=>1, :b=>2}.rekey(:to_s)  #=> { "a"=>1, "b"=>2}

T.