Class: GirFFI::ReturnValueInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi/return_value_info.rb

Overview

Represents a return value with the same interface as IArgumentInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, ownership_transfer, skip) ⇒ ReturnValueInfo

Returns a new instance of ReturnValueInfo.



8
9
10
11
12
# File 'lib/gir_ffi/return_value_info.rb', line 8

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

Instance Attribute Details

#argument_typeObject (readonly)

Returns the value of attribute argument_type.



5
6
7
# File 'lib/gir_ffi/return_value_info.rb', line 5

def argument_type
  @argument_type
end

#ownership_transferObject (readonly)

Returns the value of attribute ownership_transfer.



6
7
8
# File 'lib/gir_ffi/return_value_info.rb', line 6

def ownership_transfer
  @ownership_transfer
end

Instance Method Details

#directionObject



18
19
20
# File 'lib/gir_ffi/return_value_info.rb', line 18

def direction
  :return
end

#nameObject



22
23
24
# File 'lib/gir_ffi/return_value_info.rb', line 22

def name
  nil
end

#skip?Boolean

Returns:



14
15
16
# File 'lib/gir_ffi/return_value_info.rb', line 14

def skip?
  @skip
end