module GirFFI::InfoExt::ICallableInfo

Extensions for GObjectIntrospection::ICallableInfo needed by GirFFI

Public Instance Methods

argument_ffi_types() click to toggle source
# 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_type() click to toggle source
# File lib/gir_ffi/info_ext/i_callable_info.rb, line 9
def return_ffi_type
  return_type.to_ffitype
end
to_ffitype() click to toggle source

TODO: Move to extension just for ICallbackInfo

# File lib/gir_ffi/info_ext/i_callable_info.rb, line 14
def to_ffitype
  Builder.build_class(self)
end