Class: Weakling::IdHash::IdWeakRef
- Inherits:
-
WeakRef
- Object
- WeakRef
- Weakling::IdHash::IdWeakRef
- Defined in:
- lib/weakling/collections.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(obj, queue) ⇒ IdWeakRef
constructor
A new instance of IdWeakRef.
Constructor Details
#initialize(obj, queue) ⇒ IdWeakRef
Returns a new instance of IdWeakRef.
14 15 16 17 |
# File 'lib/weakling/collections.rb', line 14 def initialize(obj, queue) super(obj, queue) @id = obj.__id__ end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/weakling/collections.rb', line 13 def id @id end |