Sha256: 18607fb19ba0f8392ba208cf5fdc4c8ae4ba0a875dcd4141803ac7421f2ff3d7

Contents?: true

Size: 527 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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