Sha256: a4165a0833fc93dde1f423762e8c22b3165face11b83948bc253ef06078072af

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

#Predefined synchronized hash.
#
#===Examples
# h = Tsafe::MonHash.new
# h['test'] = 'trala'
# ret = h['test']
class Tsafe::MonHash < ::Hash
  @@tsafe_mrswlock_w_methods = [:[]=, :clear, :delete, :delete_if, :keep_if, :merge!, :rehash, :reject!, :replace, :select!, :shift, :store, :update, :values_at]
  @@tsafe_mrswlock_r_methods = [:each, :each_key, :each_pair, :each_value]
  
  include Tsafe::Mrswlock::SynModule
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tsafe-0.0.5 lib/tsafe_monhash.rb
tsafe-0.0.4 include/monhash.rb