Sha256: 90acf1095513c4d281891f66bc2d73ef53fa55c3710ccdcbf626aef74123f536

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

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

    def ownership_transfer
      # FIXME: Make an informed choice for this.
      :everything
    end

    def name
      '_instance'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-0.10.2 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.10.1 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.10.0 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.9.5 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.9.4 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.9.3 lib/gir_ffi/receiver_argument_info.rb