Class: GirFFI::Builder::Argument::InOutBase

Inherits:
Base
  • Object
show all
Defined in:
lib/gir_ffi/builder/argument/in_out_base.rb

Overview

Abstract base class implementing argument processing for arguments with direction :inout.

Constant Summary

Constants inherited from Base

Base::KEYWORDS, Base::TAG_TO_WRAPPER_CLASS_MAP

Instance Attribute Summary

Attributes inherited from Base

#array_arg, #length_arg, #name

Instance Method Summary collapse

Methods inherited from Base

#argument_class_name, #array_size, #callarg, #cleanup, #elm_t, #inarg, #post, #postpost, #pre, #retval, #safe, #subtype_tag_or_class_name, #type_info, #type_tag

Constructor Details

#initialize(var_gen, name, typeinfo) ⇒ InOutBase

Returns a new instance of InOutBase.



7
8
9
10
# File 'lib/gir_ffi/builder/argument/in_out_base.rb', line 7

def initialize var_gen, name, typeinfo
  super var_gen, name, typeinfo
  @inarg = @name
end

Instance Method Details

#retnameObject



12
13
14
# File 'lib/gir_ffi/builder/argument/in_out_base.rb', line 12

def retname
  @retname ||= @var_gen.new_var
end