Class: GirFFI::Builders::FullCToRubyConvertor
- Inherits:
-
CToRubyConvertor
- Object
- CToRubyConvertor
- GirFFI::Builders::FullCToRubyConvertor
- 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
Constructor Details
This class inherits a constructor from GirFFI::Builders::CToRubyConvertor
Instance Method Details
#conversion ⇒ Object
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 |