Class: GirFFI::Builders::InitializerReturnValueBuilder

Inherits:
BaseArgumentBuilder show all
Defined in:
lib/gir_ffi/builders/initializer_return_value_builder.rb

Overview

Implements post-conversion for initializer functions

Constant Summary

Constants inherited from BaseArgumentBuilder

BaseArgumentBuilder::KEYWORDS

Instance Attribute Summary

Attributes inherited from BaseArgumentBuilder

#arginfo, #array_arg, #length_arg

Instance Method Summary collapse

Methods inherited from BaseArgumentBuilder

#argument_class_name, #array_length_idx, #array_length_parameter?, #call_argument_name, #closure=, #closure?, #closure_idx, #destroy_idx, #destroy_notifier?, #direction, #helper_argument?, #initialize, #mark_as_destroy_notifier, #name, #new_variable, #ownership_transfer, #safe, #specialized_type_tag, #type_info

Constructor Details

This class inherits a constructor from GirFFI::Builders::BaseArgumentBuilder

Instance Method Details

#capture_variable_nameObject



7
8
9
# File 'lib/gir_ffi/builders/initializer_return_value_builder.rb', line 7

def capture_variable_name
  @capture_variable_name ||= new_variable
end

#post_conversionObject



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

def post_conversion
  ["store_pointer(#{capture_variable_name})"]
end