Sha256: 1a7f3cb52e5a99fb668a06d008e1d7ef23475887b449a4e795b41c1307fbfd2d

Contents?: true

Size: 508 Bytes

Versions: 13

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  # Represents the type of the receiver of a signal, vfunc, or method,
  # 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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.16.1 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.16.0 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.9 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.8 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.7 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.6 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.5 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.4 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.3 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.2 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.1 lib/gir_ffi/receiver_type_info.rb
gir_ffi-0.15.0 lib/gir_ffi/receiver_type_info.rb