Module: GirFFI::InfoExt::ICallableInfo

Defined in:
lib/gir_ffi/info_ext/i_callable_info.rb

Overview

Extensions for GObjectIntrospection::ICallableInfo needed by GirFFI

Instance Method Summary collapse

Instance Method Details

#argument_ffi_typesObject



5
6
7
# File 'lib/gir_ffi/info_ext/i_callable_info.rb', line 5

def argument_ffi_types
  args.map { |arg| arg.to_ffitype }
end

#return_ffi_typeObject



9
10
11
# File 'lib/gir_ffi/info_ext/i_callable_info.rb', line 9

def return_ffi_type
  return_type.to_ffitype
end

#to_ffitypeObject



13
14
15
# File 'lib/gir_ffi/info_ext/i_callable_info.rb', line 13

def to_ffitype
  Builder.build_class self
end