Module: GirFFI::Ownable
Overview
Module implementing the concept of ownership. Owned objects need to have their memory freed or ref count lowered when they’re garbage collected. Note that this attribute is generally placed on the nested struct of an object, and the relevant action is performed when the object’s finalizer is run.
Instance Attribute Summary collapse
-
#owned ⇒ Object
Returns the value of attribute owned.
Instance Method Summary collapse
Instance Attribute Details
#owned ⇒ Object
Returns the value of attribute owned.
10 11 12 |
# File 'lib/gir_ffi/ownable.rb', line 10 def owned @owned end |