class FFI::CallbackInfo
Attributes
arg_types[R]
options[R]
return_type[R]
Public Class Methods
new(return_type, arg_types = [], *other)
click to toggle source
# File lib/ffi-compiler/fake_ffi/ffi.rb, line 35 def initialize(return_type, arg_types = [], *other) @return_type = return_type @arg_types = arg_types @options = options end
Public Instance Methods
name(name)
click to toggle source
# File lib/ffi-compiler/fake_ffi/ffi.rb, line 41 def name(name) params = @arg_types.empty? ? 'void' : @arg_types.map(&:name).join(', ') "#{@return_type.name} (*#{name})(#{params})" end