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