Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Enumerable
/
//opt/alt/ruby27/share/ri/system/Enumerable/to_h-i.ri
U:RDoc::AnyMethod[iI" to_h:ETI"Enumerable#to_h;TF:privateo: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