Class: GirFFI::Builders::FieldBuilder::GetterArgumentInfo
- Inherits:
-
Object
- Object
- GirFFI::Builders::FieldBuilder::GetterArgumentInfo
- 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
-
#argument_type ⇒ Object
readonly
Returns the value of attribute argument_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #caller_allocates? ⇒ Boolean
- #closure ⇒ Object
- #destroy ⇒ Object
- #direction ⇒ Object
-
#initialize(name, type) ⇒ GetterArgumentInfo
constructor
A new instance of GetterArgumentInfo.
- #ownership_transfer ⇒ Object
- #skip? ⇒ Boolean
Constructor Details
#initialize(name, type) ⇒ GetterArgumentInfo
Returns a new instance of GetterArgumentInfo.
104 105 106 107 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 104 def initialize(name, type) @name = name @argument_type = type end |
Instance Attribute Details
#argument_type ⇒ Object (readonly)
Returns the value of attribute argument_type.
102 103 104 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 102 def argument_type @argument_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
102 103 104 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 102 def name @name end |
Instance Method Details
#caller_allocates? ⇒ Boolean
125 126 127 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 125 def caller_allocates? false end |
#closure ⇒ Object
109 110 111 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 109 def closure -1 end |
#destroy ⇒ Object
113 114 115 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 113 def destroy -1 end |
#direction ⇒ Object
117 118 119 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 117 def direction :out end |
#ownership_transfer ⇒ Object
121 122 123 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 121 def ownership_transfer :nothing end |
#skip? ⇒ Boolean
129 130 131 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 129 def skip? false end |