D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Fiddle
/
Closure
/
Filename :
create-c.ri
back
Copy
U:RDoc::AnyMethod[iI"create:ETI"Fiddle::Closure::create;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DCreate a new closure. If a block is given, the created closure ;TI">is automatically freed after the given block is executed.;To:RDoc::Markup::BlankLine o; ; [I"CThe all given arguments are passed to Fiddle::Closure.new. So ;TI"Cusing this method without block equals to Fiddle::Closure.new.;T@S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"?Fiddle::Closure.create(TYPE_INT, [TYPE_INT]) do |closure| ;TI"E # closure is freed automatically when this block is finished. ;TI"end;T:@format0: @fileI"%ext/fiddle/lib/fiddle/closure.rb;T:0@omit_headings_from_table_of_contents_below00I"closure;T[ I"(*args);T@FI"Closure;TcRDoc::NormalClass00