X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/Proc
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Proc
/
📄
%3d%3d-i.yaml
(358 B)
📄
%5b%5d-i.yaml
(1.37 KB)
ðŸ“
..
📄
arity-i.yaml
(930 B)
📄
binding-i.yaml
(601 B)
📄
call-i.yaml
(1.37 KB)
📄
cdesc-Proc.yaml
(1.1 KB)
📄
clone-i.yaml
(223 B)
📄
new-c.yaml
(662 B)
📄
to_proc-i.yaml
(352 B)
📄
to_s-i.yaml
(318 B)
Editing: 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) #=> 36\n times5.call(5) #=> 25\n times3.call(times5.call(4)) #=> 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
Upload File
Create Folder