Class: GirFFI::Builders::FieldBuilder::GetterArgumentInfo

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

Overview

Class to represent argument info for the argument of a getter method. Implements the necessary parts of IArgInfo’s interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ GetterArgumentInfo

Returns a new instance of GetterArgumentInfo.



105
106
107
108
# File 'lib/gir_ffi/builders/field_builder.rb', line 105

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

Instance Attribute Details

#argument_typeObject (readonly)

Returns the value of attribute argument_type.



103
104
105
# File 'lib/gir_ffi/builders/field_builder.rb', line 103

def argument_type
  @argument_type
end

#nameObject (readonly)

Returns the value of attribute name.



103
104
105
# File 'lib/gir_ffi/builders/field_builder.rb', line 103

def name
  @name
end

Instance Method Details

#caller_allocates?Boolean

Returns:



126
127
128
# File 'lib/gir_ffi/builders/field_builder.rb', line 126

def caller_allocates?
  false
end

#closureObject



110
111
112
# File 'lib/gir_ffi/builders/field_builder.rb', line 110

def closure
  -1
end

#destroyObject



114
115
116
# File 'lib/gir_ffi/builders/field_builder.rb', line 114

def destroy
  -1
end

#directionObject



118
119
120
# File 'lib/gir_ffi/builders/field_builder.rb', line 118

def direction
  :out
end

#ownership_transferObject



122
123
124
# File 'lib/gir_ffi/builders/field_builder.rb', line 122

def ownership_transfer
  :nothing
end

#skip?Boolean

Returns:



130
131
132
# File 'lib/gir_ffi/builders/field_builder.rb', line 130

def skip?
  false
end