Class: GirFFI::ReceiverArgumentInfo
- Inherits:
-
Object
- Object
- GirFFI::ReceiverArgumentInfo
- Defined in:
- lib/gir_ffi/receiver_argument_info.rb
Overview
Class to represent the info for the receiver argument of a callback or signal handler. Implements the necessary parts of IArgumentInfo’s interface.
Instance Attribute Summary collapse
-
#argument_type ⇒ Object
readonly
Returns the value of attribute argument_type.
Instance Method Summary collapse
- #direction ⇒ Object
-
#initialize(type) ⇒ ReceiverArgumentInfo
constructor
A new instance of ReceiverArgumentInfo.
- #name ⇒ Object
-
#ownership_transfer ⇒ Object
Assume we don’t need to increase the refcount for the receiver argument.
Constructor Details
#initialize(type) ⇒ ReceiverArgumentInfo
Returns a new instance of ReceiverArgumentInfo.
9 10 11 |
# File 'lib/gir_ffi/receiver_argument_info.rb', line 9 def initialize(type) @argument_type = type end |
Instance Attribute Details
#argument_type ⇒ Object (readonly)
Returns the value of attribute argument_type.
7 8 9 |
# File 'lib/gir_ffi/receiver_argument_info.rb', line 7 def argument_type @argument_type end |
Instance Method Details
#direction ⇒ Object
13 14 15 |
# File 'lib/gir_ffi/receiver_argument_info.rb', line 13 def direction :in end |
#name ⇒ Object
22 23 24 |
# File 'lib/gir_ffi/receiver_argument_info.rb', line 22 def name '_instance' end |
#ownership_transfer ⇒ Object
Assume we don’t need to increase the refcount for the receiver argument.
18 19 20 |
# File 'lib/gir_ffi/receiver_argument_info.rb', line 18 def ownership_transfer :everything end |