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, skip = false) ⇒ ReturnValueInfo

Returns a new instance of ReturnValueInfo.



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

def initialize type, skip = false
  @argument_type = type
  @skip = skip
end

Instance Attribute Details

#argument_typeObject (readonly)

Returns the value of attribute argument_type.



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

def argument_type
  @argument_type
end

Instance Method Details

#directionObject



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

def direction
  :return
end

#nameObject



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

def name
  nil
end

#skip?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/gir_ffi/return_value_info.rb', line 11

def skip?
  @skip
end