Module | Qpid::Proton::Util::Wrapper::ClassMethods |
In: |
lib/util/wrapper.rb
|
Adds methods to the target class for storing and retrieving pure Ruby wrappers to underlying Proton structures.
Such wrappers are stored in a registry using a key. The key is then attached to the Proton structure as a record. That record lives for as long as the Proton structure lives, and when the structure is released the record acts as hook to also delete the Ruby wrapper object from the registry.
@private
Stores the given object for later retrieval.
@param object [Object] The object. @param attachment_method [Symbol] The Proton attachment method.