Sha256: e993549e0204390446c17f55baa9ccc22f919042265ba93e45287ae672a41451

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

module GirFFI
  # Implements the creation of a Ruby constructor definition out of a GIR
  # IFunctionInfo, if it represents a constructor.
  class ConstructorDefinitionBuilder < FunctionDefinitionBuilder
    private

    def process_return_value
    end

    def filled_out_template
      return <<-CODE
	def #{@info.name} #{@inargs.join(', ')}
	  #{@pre.join("\n")}
	  _real_new #{@libmodule}.#{@info.symbol}(#{@callargs.join(', ')})
	end
      CODE
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.0.3 lib/gir_ffi/constructor_definition_builder.rb
gir_ffi-0.0.2 lib/gir_ffi/constructor_definition_builder.rb
gir_ffi-0.0.1 lib/gir_ffi/constructor_definition_builder.rb