Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
Enumerable
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.6/usr/share/ri/2.6.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