Class: GirFFI::FieldArgumentInfo
- Inherits:
-
Object
- Object
- GirFFI::FieldArgumentInfo
- Defined in:
- lib/gir_ffi/field_argument_info.rb
Overview
Class to represent argument info for the argument of a setter method. Implements the necessary parts of IArgInfo’s interface. TODO: Rename and add direction argument or subclass
Instance Attribute Summary collapse
-
#argument_type ⇒ Object
readonly
Returns the value of attribute argument_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #direction ⇒ Object
-
#initialize(name, type) ⇒ FieldArgumentInfo
constructor
A new instance of FieldArgumentInfo.
- #ownership_transfer ⇒ Object
- #skip? ⇒ Boolean
Constructor Details
#initialize(name, type) ⇒ FieldArgumentInfo
Returns a new instance of FieldArgumentInfo.
10 11 12 13 |
# File 'lib/gir_ffi/field_argument_info.rb', line 10 def initialize(name, type) @name = name @argument_type = type end |
Instance Attribute Details
#argument_type ⇒ Object (readonly)
Returns the value of attribute argument_type.
8 9 10 |
# File 'lib/gir_ffi/field_argument_info.rb', line 8 def argument_type @argument_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/gir_ffi/field_argument_info.rb', line 8 def name @name end |
Instance Method Details
#direction ⇒ Object
15 16 17 |
# File 'lib/gir_ffi/field_argument_info.rb', line 15 def direction :in end |
#ownership_transfer ⇒ Object
19 20 21 |
# File 'lib/gir_ffi/field_argument_info.rb', line 19 def ownership_transfer :everything end |