File: C:/Ruby27-x64/share/ri/2.7.0/system/Enumerable/to_h-i.ri
U:RDoc::AnyMethod[iI" to_h:ETI"Enumerable#to_h;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"AReturns the result of interpreting <i>enum</i> as a list of ;TI"!<tt>[key, value]</tt> pairs.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"*%i[hello world].each_with_index.to_h
;TI"' # => {:hello => 0, :world => 1}
;T:@format0o;
; [I"FIf a block is given, the results of the block on each element of ;TI"$the enum will be used as pairs.;T@o;; [I"#(1..5).to_h {|x| [x, x ** 2]}
;TI"+ #=> {1=>1, 2=>4, 3=>9, 4=>16, 5=>25};T;
0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"Eenum.to_h(*args) -> hash
enum.to_h(*args) {...} -> hash
;T0[ I"(*args);T@FI"Enumerable;TcRDoc::NormalModule00