Sha256: ef09feba6ef27b0418cebb9937f8e478500c1ce4c3a8dbe777e4dc6712189434

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  # Class to represent the info for the receiver argument of a callback or
  # signal handler. Implements the necessary parts of IArgumentInfo's
  # interface.
  class ReceiverArgumentInfo
    attr_reader :argument_type

    def initialize(type)
      @argument_type = type
    end

    def direction
      :in
    end

    # Assume we don't need to increase the refcount for the receiver argument.
    def ownership_transfer
      :everything
    end

    def name
      '_instance'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.13.0 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.12.1 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.12.0 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.11.4 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.11.3 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.11.2 lib/gir_ffi/receiver_argument_info.rb