Sha256: 884ea8b4020935a15dd035653d0ed53a858f667f47792e83bafacfeea2d2c9ab

Contents?: true

Size: 478 Bytes

Versions: 9

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  # Represents a return value with the same interface as IArgumentInfo
  class ReturnValueInfo
    attr_reader :argument_type
    attr_reader :ownership_transfer

    def initialize(type, ownership_transfer, skip)
      @argument_type = type
      @ownership_transfer = ownership_transfer
      @skip = skip
    end

    def skip?
      @skip
    end

    def direction
      :return
    end

    def name
      nil
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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