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



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

def conversion
  base = super
  if @type_info.gvalue?
    "#{base}.get_value"
  else
    base
  end
end