Sha256: 845e18416c5709a93f5ce8f24af68296dc9d966b1651e9ed1a24c7384c363ba0

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/gir_ffi/receiver_argument_info.rb
gir_ffi-0.7.9 lib/gir_ffi/receiver_argument_info.rb