JezK
Edit File: rekey%21-i.ri
U:RDoc::AnyMethod[iI"rekey!:EFI"Hash#rekey!;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"QSynonym for Hash#rekey, but modifies the receiver in place (and returns it).;To:RDoc::Markup::BlankLine o; ; [I"+key_map - Hash of old key to new key. ;TI"Eblock - Procedure to convert keys, which can take just the key;To:RDoc::Markup::Verbatim; [I")or both key and value as arguments. ;T:@format0o; ; [I" Examples;T@o;; [I",foo = { :name=>'Gavin', :wife=>:Lisa } ;TI"Gfoo.rekey!{ |k| k.to_s } #=> { "name"=>"Gavin", "wife"=>:Lisa } ;TI"Gfoo #=> { "name"=>"Gavin", "wife"=>:Lisa } ;T; 0o; ; [I"Returns `Hash`.;T: @fileI"lib/hashery/core_ext.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(key_map=nil, &block);T@!FI" Hash;TcRDoc::NormalClass00