Sha256: 9cc264f3e7f8d6774ed55b3e16c5061b3b145e9e28c3e8c7932c7252d502e3e8

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  # Class to represent argument info for the argument of a setter method.
  # Implements the necessary parts of IArgumentInfo's interface.
  # TODO: Rename and add direction argument or subclass
  class FieldArgumentInfo
    attr_reader :name, :argument_type

    def initialize(name, type)
      @name = name
      @argument_type = type
    end

    def direction
      :in
    end

    def ownership_transfer
      :everything
    end

    def skip?
      false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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