Class: GirFFI::Builders::InitializerBuilder
Overview
Implements the creation of a Ruby object initializer definition out of a GIR IFunctionInfo.
Instance Method Summary
collapse
#argument_builder_collection, #argument_builders, #error_argument, #invocation, #method_arguments, #method_definition, #preparation, #receiver_builder, #return_value_builder, #return_value_info, #template, #variable_generator
Constructor Details
Returns a new instance of InitializerBuilder.
Instance Method Details
#function_call_arguments ⇒ Object
26
27
28
|
# File 'lib/gir_ffi/builders/initializer_builder.rb', line 26
def function_call_arguments
argument_builder_collection.call_argument_names
end
|
#method_name ⇒ Object
18
19
20
|
# File 'lib/gir_ffi/builders/initializer_builder.rb', line 18
def method_name
@info.safe_name.sub(/^new/, 'initialize')
end
|
#result ⇒ Object
22
23
24
|
# File 'lib/gir_ffi/builders/initializer_builder.rb', line 22
def result
[]
end
|
#singleton_method? ⇒ Boolean
14
15
16
|
# File 'lib/gir_ffi/builders/initializer_builder.rb', line 14
def singleton_method?
false
end
|