class WeakHashMap::RefDetails

Attributes

key[R]
value[R]

Public Class Methods

new(hash, key, value) click to toggle source
# File lib/bidi/weakhashmap.rb, line 12
def initialize (hash, key, value)

  @hash = hash
  @key = key
  @value = value
  begin
    ObjectSpace.define_finalizer(value, proc {@hash.delete(@key)});
  rescue ArgumentError
  end
end