Class: GirFFI::Builders::UserDefinedBuilder::UserDefinedPropertyFieldInfo
- Inherits:
-
Object
- Object
- GirFFI::Builders::UserDefinedBuilder::UserDefinedPropertyFieldInfo
- Defined in:
- lib/gir_ffi/builders/user_defined_builder.rb
Overview
TODO: Move this to its own file. TODO: See if this or FieldTypeInfo can be merged with with UserDefinedPropertyInfo.
Defined Under Namespace
Classes: FieldTypeInfo
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
- #field_type ⇒ Object
-
#initialize(property_info, container, offset) ⇒ UserDefinedPropertyFieldInfo
constructor
A new instance of UserDefinedPropertyFieldInfo.
- #name ⇒ Object
- #related_array_length_field ⇒ Object
- #writable? ⇒ Boolean
Constructor Details
#initialize(property_info, container, offset) ⇒ UserDefinedPropertyFieldInfo
Returns a new instance of UserDefinedPropertyFieldInfo.
215 216 217 218 219 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 215 def initialize(property_info, container, offset) @property_info = property_info @container = container @offset = offset end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
221 222 223 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 221 def container @container end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
221 222 223 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 221 def offset @offset end |
Instance Method Details
#field_type ⇒ Object
227 228 229 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 227 def field_type @field_type ||= FieldTypeInfo.new @property_info end |
#name ⇒ Object
223 224 225 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 223 def name @property_info.accessor_name end |
#related_array_length_field ⇒ Object
231 232 233 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 231 def nil end |
#writable? ⇒ Boolean
235 236 237 |
# File 'lib/gir_ffi/builders/user_defined_builder.rb', line 235 def writable? @property_info.writable? end |