Class: Weakling::IdHash::IdWeakRef

Inherits:
WeakRef
  • Object
show all
Defined in:
lib/weakling/collections.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/weakling/collections.rb', line 13

def id
  @id
end