This module is used when a delegate is being used.
Methods
[]
[]=
clear
delete
keys
size
values
Public Instance methods
[ + ]
# File lib/more/facets/synchash.rb, line 119 def [](key) @sync.synchronize(::Sync::SH) { @delegate[key] } end
[ + ]
# File lib/more/facets/synchash.rb, line 123 def []=(key, value) @sync.synchronize(::Sync::EX) { @delegate[key] = value } end
[ + ]
# File lib/more/facets/synchash.rb, line 131 def clear @sync.synchronize(::Sync::EX) { @delegate.clear } end
[ + ]
# File lib/more/facets/synchash.rb, line 127 def delete(key) @sync.synchronize(::Sync::EX) { @delegate.delete(key) } end
[ + ]
# File lib/more/facets/synchash.rb, line 143 def keys @sync.synchronize(::Sync::SH) { @delegate.keys() } end
[ + ]
# File lib/more/facets/synchash.rb, line 135 def size @sync.synchronize(::Sync::SH) { @delegate.size() } end
[ + ]
# File lib/more/facets/synchash.rb, line 139 def values @sync.synchronize(::Sync::SH) { @delegate.values() } end