Sha256: 08ab03f73b9f46b298d98d23b3927e36dea5f09c2b799d86a11f3762ba24e31a

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

module GirFFI
  module Builders
    # Builds conversion code for the result of a GObject constructor method.
    class ConstructorResultConvertor
      def initialize argument_name
        @argument_name = argument_name
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/gir_ffi/builders/constructor_result_convertor.rb
gir_ffi-0.7.9 lib/gir_ffi/builders/constructor_result_convertor.rb
gir_ffi-0.7.8 lib/gir_ffi/builders/constructor_result_convertor.rb