Class: GirFFI::Builders::FullCToRubyConvertor

Inherits:
CToRubyConvertor show all
Defined in:
lib/gir_ffi/builders/full_c_to_ruby_convertor.rb

Overview

Builder that generates code to convert values from C to Ruby, including GValue unpacking. Used by argument builders.

Instance Method Summary collapse

Methods inherited from CToRubyConvertor

#initialize

Constructor Details

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

Instance Method Details

#conversionObject



10
11
12
13
14
15
16
# File 'lib/gir_ffi/builders/full_c_to_ruby_convertor.rb', line 10

def conversion
  if @type_info.gvalue?
    "GObject::Value.wrap(#{@argument}).get_value"
  else
    super
  end
end