Class: GirFFI::Builders::ConstructorResultConvertor

Inherits:
Object
  • Object
show all
Defined in:
lib/gir_ffi/builders/constructor_result_convertor.rb

Overview

Builds conversion code for the result of a GObject constructor method.

Instance Method Summary collapse

Constructor Details

#initialize(argument_name) ⇒ ConstructorResultConvertor

Returns a new instance of ConstructorResultConvertor.



5
6
7
# File 'lib/gir_ffi/builders/constructor_result_convertor.rb', line 5

def initialize argument_name
  @argument_name = argument_name
end

Instance Method Details

#conversionObject



9
10
11
# File 'lib/gir_ffi/builders/constructor_result_convertor.rb', line 9

def conversion
  "self.constructor_wrap(#{@argument_name})"
end