In Files

  • fiddle/lib/fiddle/closure.rb

Methods

Class/Module Index [+]

Quicksearch

Fiddle::Closure::BlockCaller

Public Class Methods

new(ctype, args, abi = Fiddle::Function::DEFAULT, &block) click to toggle source
 
               # File fiddle/lib/fiddle/closure.rb, line 7
def initialize ctype, args, abi = Fiddle::Function::DEFAULT, &block
  super(ctype, args, abi)
  @block = block
end
            

Public Instance Methods

call(*args) click to toggle source
 
               # File fiddle/lib/fiddle/closure.rb, line 12
def call *args
  @block.call(*args)
end