Module: GirFFI::InfoExt::IVFuncInfo
- Included in:
- GObjectIntrospection::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
- #full_name ⇒ Object
- #has_invoker? ⇒ Boolean
- #invoker_name ⇒ Object
- #return_ffi_type ⇒ Object
Instance Method Details
#argument_ffi_types ⇒ Object
8 9 10 11 12 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 8 def argument_ffi_types args.map(&:to_callback_ffi_type).tap do |types| types << :pointer if throws? end end |
#full_name ⇒ Object
26 27 28 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 26 def full_name "#{container.full_name}::#{safe_name}" end |
#has_invoker? ⇒ Boolean
22 23 24 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 22 def has_invoker? invoker end |
#invoker_name ⇒ Object
18 19 20 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 18 def invoker_name invoker&.name end |
#return_ffi_type ⇒ Object
14 15 16 |
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 14 def return_ffi_type return_type.to_callback_ffi_type end |