Module: GirFFI::InfoExt::IVFuncInfo
- Defined in:
- lib/gir_ffi/info_ext/i_vfunc_info.rb
Overview
Extensions for GObjectIntrospection::IVFuncInfo needed by GirFFI TODO: Merge implementation with ICallbackInfo and ISignalInfo extensions.
Instance Method Summary collapse
- #argument_ffi_types ⇒ Object
- #has_invoker? ⇒ Boolean
- #invoker_name ⇒ Object
- #return_ffi_type ⇒ Object
Instance Method Details
#argument_ffi_types ⇒ Object
7 8 9 10 11 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 7 def argument_ffi_types args.map(&:to_callback_ffi_type).tap do |types| types << :pointer if throws? end end |
#has_invoker? ⇒ Boolean
21 22 23 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 21 def has_invoker? invoker end |
#invoker_name ⇒ Object
17 18 19 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 17 def invoker_name invoker && invoker.name end |
#return_ffi_type ⇒ Object
13 14 15 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 13 def return_ffi_type return_type.to_callback_ffi_type end |