Sha256: 3527103b9aba212c080f8e39747be915f0cc9d7d779e9390536af62c1dd588e7

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 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

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.6 lib/gir_ffi/info_ext/i_registered_type_info.rb
gir_ffi-0.7.5 lib/gir_ffi/info_ext/i_registered_type_info.rb