Sha256: b168b10458e88215260298933bd26355f66c1dd50d30305c5be5ae362e94823e

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

#Predefined synchronized array.
#
#===Examples
#  arr = Tsafe::MonArray.new
#  arr << 5
#  ret = arr[0]
class Tsafe::MonArray < ::Array
  @@tsafe_mrswlock_w_methods = [:<<, :collect, :collect!, :compact!, :delete, :delete_at, :delete_if, :drop, :drop_while, :fill, :flatten!, :insert, :keep_if, :map, :map!, :replace, :shuffle!, :slice!, :shift, :sort!, :sort_by!, :unshift]
  @@tsafe_mrswlock_r_methods = [:each, :each_index, :take_while]
  
  include Tsafe::Mrswlock_synmodule
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tsafe-0.0.11 lib/tsafe_monarray.rb
tsafe-0.0.10 lib/tsafe_monarray.rb