Module: GirFFI::Library

Includes:
FFI::Library
Included in:
GObject::Lib
Defined in:
lib/gir_ffi-base/gir_ffi/library.rb

Instance Method Summary collapse

Instance Method Details

#find_type(type) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/gir_ffi-base/gir_ffi/library.rb', line 7

def find_type type
  if type.is_a? Module
    if type.const_defined?(:Enum)
      return super type::Enum
    end
  end

  super
end