Sha256: acc8adcec35df6659538decdbe4a3d22d3bdd8852ec9071fd0fdeaac1dfebc72

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

require 'gir_ffi/builder_helper'

module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::IRegisteredTypeInfo needed by GirFFI
    module IRegisteredTypeInfo
      def to_ffitype
        to_type.to_ffitype
      end

      def to_type
        Builder.build_class self
      end

      def find_instance_method method
        info = find_method method
        return info if info && info.method?
      end
    end
  end
end

GObjectIntrospection::IRegisteredTypeInfo.send :include, GirFFI::InfoExt::IRegisteredTypeInfo

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/gir_ffi/info_ext/i_registered_type_info.rb
gir_ffi-0.7.3 lib/gir_ffi/info_ext/i_registered_type_info.rb
gir_ffi-0.7.2 lib/gir_ffi/info_ext/i_registered_type_info.rb
gir_ffi-0.7.1 lib/gir_ffi/info_ext/i_registered_type_info.rb
gir_ffi-0.7.0 lib/gir_ffi/info_ext/i_registered_type_info.rb