Module SyncHash::Delegator
In: lib/more/facets/synchash.rb

This module is used when a delegate is being used.

Methods

[]   []=   clear   delete   keys   size   values  

Public Instance methods

[Source]

# File lib/more/facets/synchash.rb, line 119
    def [](key)
      @sync.synchronize(::Sync::SH) { @delegate[key] }
    end

[Source]

# File lib/more/facets/synchash.rb, line 123
    def []=(key, value)
      @sync.synchronize(::Sync::EX) { @delegate[key] = value }
    end

[Source]

# File lib/more/facets/synchash.rb, line 131
    def clear
      @sync.synchronize(::Sync::EX) { @delegate.clear }
    end

[Source]

# File lib/more/facets/synchash.rb, line 127
    def delete(key)
      @sync.synchronize(::Sync::EX) { @delegate.delete(key) }
    end

[Source]

# File lib/more/facets/synchash.rb, line 143
    def keys
      @sync.synchronize(::Sync::SH) { @delegate.keys() }
    end

[Source]

# File lib/more/facets/synchash.rb, line 135
    def size
      @sync.synchronize(::Sync::SH) { @delegate.size() }
    end

[Source]

# File lib/more/facets/synchash.rb, line 139
    def values
      @sync.synchronize(::Sync::SH) { @delegate.values() }
    end

[Validate]