U:RDoc::AnyMethod[iI"new:ETI"&Fiddle::Closure::BlockCaller::new;TT: publico:RDoc::Markup::Document: @parts[S:RDoc::Markup::Heading: leveli: textI"Description;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph; [I"(Construct a new BlockCaller object.;T@ o:RDoc::Markup::List: @type: BULLET: @items[o:RDoc::Markup::ListItem: @label0; [o;; [I")+ctype+ is the C type to be returned;To;;0; [o;; [I"#+args+ are passed the callback;To;;0; [o;; [I"$+abi+ is the abi of the closure;T@ o;; [I"LIf there is an error in preparing the +ffi_cif+ or +ffi_prep_closure+, ;TI"(then a RuntimeError will be raised.;T@ S; ; i; I" Example;T@ o:RDoc::Markup::Verbatim; [ I"include Fiddle ;TI" ;TI"Bcb = Closure::BlockCaller.new(TYPE_INT, [TYPE_INT]) do |one| ;TI" one ;TI" end ;TI" ;TI"2func = Function.new(cb, [TYPE_INT], TYPE_INT);T: @format0: @fileI"%ext/fiddle/lib/fiddle/closure.rb;T:0@omit_headings_from_table_of_contents_below000[I";(ctype, args, abi = Fiddle::Function::DEFAULT, &block);T@1TI"BlockCaller;TcRDoc::NormalClass00