Class: GirFFI::Builders::FieldBuilder::GetterBuilder
- Inherits:
-
Object
- Object
- GirFFI::Builders::FieldBuilder::GetterBuilder
- Defined in:
- lib/gir_ffi/builders/field_builder.rb
Overview
Builder for field getters TODO: Derive from BaseMethodBuilder
Instance Method Summary collapse
-
#initialize(info) ⇒ GetterBuilder
constructor
A new instance of GetterBuilder.
- #invocation ⇒ Object
- #method_arguments ⇒ Object
- #method_definition ⇒ Object
- #method_name ⇒ Object
- #preparation ⇒ Object
- #result ⇒ Object
- #singleton_method? ⇒ Boolean
Constructor Details
#initialize(info) ⇒ GetterBuilder
Returns a new instance of GetterBuilder.
138 139 140 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 138 def initialize(info) @info = info end |
Instance Method Details
#invocation ⇒ Object
162 163 164 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 162 def invocation nil end |
#method_arguments ⇒ Object
154 155 156 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 154 def method_arguments [] end |
#method_definition ⇒ Object
142 143 144 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 142 def method_definition template.method_definition end |
#method_name ⇒ Object
150 151 152 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 150 def method_name @info.name end |
#preparation ⇒ Object
158 159 160 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 158 def preparation [] end |
#result ⇒ Object
166 167 168 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 166 def result [getter_argument_builder.return_value_name] end |
#singleton_method? ⇒ Boolean
146 147 148 |
# File 'lib/gir_ffi/builders/field_builder.rb', line 146 def singleton_method? false end |