This module is used when a delegate is being used.
Methods
Public Instance methods
[ show source ]
# File lib/facets/more/synchash.rb, line 102 def [](key) @sync.synchronize(::Sync::SH) { @delegate[key] } end
[ show source ]
# File lib/facets/more/synchash.rb, line 106 def []=(key, value) @sync.synchronize(::Sync::EX) { @delegate[key] = value } end
[ show source ]
# File lib/facets/more/synchash.rb, line 114 def clear @sync.synchronize(::Sync::EX) { @delegate.clear } end
[ show source ]
# File lib/facets/more/synchash.rb, line 110 def delete(key) @sync.synchronize(::Sync::EX) { @delegate.delete(key) } end
[ show source ]
# File lib/facets/more/synchash.rb, line 126 def keys @sync.synchronize(::Sync::SH) { @delegate.keys() } end
[ show source ]
# File lib/facets/more/synchash.rb, line 118 def size @sync.synchronize(::Sync::SH) { @delegate.size() } end
[ show source ]
# File lib/facets/more/synchash.rb, line 122 def values @sync.synchronize(::Sync::SH) { @delegate.values() } end