Sha256: 6daf76d81ce0f16c948d77da1da833d24e5c516643e20804b56e5551047e71b9

Contents?: true

Size: 498 Bytes

Versions: 9

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  # Represents the type of the receiver of a signal or vfunc, conforming, as
  # needed, to the interface of GObjectIntrospection::ITypeInfo
  class ReceiverTypeInfo
    include InfoExt::ITypeInfo

    def initialize(interface_info)
      @interface_info = interface_info
    end

    def interface
      @interface_info
    end

    def tag
      :interface
    end

    def pointer?
      false
    end

    def array_length
      -1
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.11.0 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.10.2 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.10.1 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.10.0 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.9.5 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.9.4 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.9.3 lib/gir_ffi/receiver_type_info.rb