Module: GirFFI::InfoExt::IRegisteredTypeInfo
- Included in:
- GObjectIntrospection::IRegisteredTypeInfo
- Defined in:
- lib/gir_ffi/info_ext/i_registered_type_info.rb
Overview
Extensions for GObjectIntrospection::IRegisteredTypeInfo needed by GirFFI
Instance Method Summary collapse
- #find_instance_method(method) ⇒ Object
- #find_method(_method) ⇒ Object
- #to_callback_ffi_type ⇒ Object
- #to_ffi_type ⇒ Object
- #to_type ⇒ Object
Instance Method Details
#find_instance_method(method) ⇒ Object
21 22 23 24 |
# File 'lib/gir_ffi/info_ext/i_registered_type_info.rb', line 21 def find_instance_method(method) info = find_method method info if info&.method? end |
#find_method(_method) ⇒ Object
26 27 28 |
# File 'lib/gir_ffi/info_ext/i_registered_type_info.rb', line 26 def find_method(_method) raise "Must be overridden in subclass" end |
#to_callback_ffi_type ⇒ Object
13 14 15 |
# File 'lib/gir_ffi/info_ext/i_registered_type_info.rb', line 13 def to_callback_ffi_type to_type.to_callback_ffi_type end |
#to_ffi_type ⇒ Object
9 10 11 |
# File 'lib/gir_ffi/info_ext/i_registered_type_info.rb', line 9 def to_ffi_type to_type.to_ffi_type end |
#to_type ⇒ Object
17 18 19 |
# File 'lib/gir_ffi/info_ext/i_registered_type_info.rb', line 17 def to_type Builder.build_class self end |