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
/
Hash
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/Hash/to_proc-i.ri
U:RDoc::AnyMethod[iI"to_proc:ETI"Hash#to_proc;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Returns a Proc which maps keys to values.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"h = {a:1, b:2} ;TI"hp = h.to_proc ;TI" hp.call(:a) #=> 1 ;TI" hp.call(:b) #=> 2 ;TI""hp.call(:c) #=> nil ;TI")[:a, :b, :c].map(&h) #=> [1, 2, nil];T:@format0: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"hash.to_proc -> proc ;T0[ I"();T@FI" Hash;TcRDoc::NormalClass00