Class: GirFFI::Builders::ClosureArgumentBuilder

Inherits:
CallbackArgumentBuilder show all
Defined in:
lib/gir_ffi/builders/closure_argument_builder.rb

Overview

Convertor for arguments for RubyClosure objects. Used when building the marshaller for signal handler closures.

Constant Summary

Constants inherited from BaseArgumentBuilder

BaseArgumentBuilder::KEYWORDS

Instance Attribute Summary

Attributes inherited from BaseArgumentBuilder

#arginfo, #array_arg, #is_closure, #length_arg

Instance Method Summary collapse

Methods inherited from CallbackArgumentBuilder

#call_argument_name, #capture_variable_name, #method_argument_name, #post_conversion, #pre_conversion, #pre_converted_name

Methods inherited from BaseArgumentBuilder

#argument_class_name, #array_length_idx, #callarg, #direction, #initialize, #name, #new_variable, #safe, #specialized_type_tag, #type_info

Constructor Details

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

Instance Method Details

#needs_c_to_ruby_conversion?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/gir_ffi/builders/closure_argument_builder.rb', line 8

def needs_c_to_ruby_conversion?
  type_info.needs_c_to_ruby_conversion_for_closures?
end