Sha256: 1e56e961009cfbcc19d229aec228666597fd9f916dd5eda326f75160364555c2

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::ICallableInfo needed by GirFFI
    module ICallableInfo
      def argument_ffi_types
        args.map { |arg| arg.to_ffitype }
      end

      def return_ffi_type
        return_type.to_ffitype
      end
    end
  end
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.6.3 lib/gir_ffi/info_ext/i_callable_info.rb
gir_ffi-0.6.2 lib/gir_ffi/info_ext/i_callable_info.rb
gir_ffi-0.6.1 lib/gir_ffi/info_ext/i_callable_info.rb
gir_ffi-0.6.0 lib/gir_ffi/info_ext/i_callable_info.rb