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
/
Proc
/
//opt/alt/ruby27/share/ri/system/Proc/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"Proc::new;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"HCreates a new Proc object, bound to the current context. Proc::new ;TI"@may be called without a block only within a method with an ;TI"Gattached block, in which case that block is converted to the Proc ;TI"object.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"def proc_from ;TI" Proc.new ;TI" end ;TI""proc = proc_from { "hello" } ;TI"proc.call #=> "hello";T:@format0: @fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I"IProc.new {|...| block } -> a_proc Proc.new -> a_proc ;T0[ I"(*args);T@FI" Proc;TcRDoc::NormalClass00