Sha256: dfcf0585812a7b5b7cf7778a603ac64e1795e9bfb792054870af57b172f26379

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

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

      def to_ffitype
        Builder.build_class self
      end
    end
  end
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 lib/gir_ffi/info_ext/i_callable_info.rb
gir_ffi-0.6.5 lib/gir_ffi/info_ext/i_callable_info.rb
gir_ffi-0.6.4 lib/gir_ffi/info_ext/i_callable_info.rb