PHP 8.2.31
Preview: cdesc-Proc.yaml Size: 1.10 KB
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Proc/cdesc-Proc.yaml

--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: <tt>Proc</tt> objects are blocks of code that have been bound to a set of local variables. Once bound, the code may be called in different contexts and still access those variables.
- !ruby/struct:SM::Flow::VERB 
  body: "   def gen_times(factor)\n     return Proc.new {|n| n*factor }\n   end\n\n   times3 = gen_times(3)\n   times5 = gen_times(5)\n\n   times3.call(12)               #=&gt; 36\n   times5.call(5)                #=&gt; 25\n   times3.call(times5.call(4))   #=&gt; 60\n"
constants: []

full_name: Proc
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: ==
- !ruby/object:RI::MethodSummary 
  name: "[]"
- !ruby/object:RI::MethodSummary 
  name: arity
- !ruby/object:RI::MethodSummary 
  name: binding
- !ruby/object:RI::MethodSummary 
  name: call
- !ruby/object:RI::MethodSummary 
  name: clone
- !ruby/object:RI::MethodSummary 
  name: to_proc
- !ruby/object:RI::MethodSummary 
  name: to_s
name: Proc
superclass: Object

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
358 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
1.37 KB lrw-r--r-- 2023-07-26 13:47:14
Edit Download
930 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
601 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
1.37 KB lrw-r--r-- 2023-07-26 13:47:14
Edit Download
1.10 KB lrw-r--r-- 2023-07-26 13:47:14
Edit Download
223 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
662 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
352 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download
318 B lrw-r--r-- 2023-07-26 13:47:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).