Class: SyncArray

Inherits:
Array show all
Defined in:
lib/more/facets/syncarray.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Array

#at_rand, #at_rand!, cast_from, #conjoin, #delete_unless, #delete_values, #delete_values_at, #each_iteration, #merge!, mutable_methods, #not_empty?, #only, #pad, #pad!, #pick, #pick!, #rand_index, #rand_subset, #restore_snapshot, #rotate, #rotate!, #select!, #shuffle, #shuffle!, #splice, #take_snapshot, #to_b, #to_console, #to_h, #to_path, #to_t

Methods included from Stackable

#peek, #poke, #pop, #pull, #push

Methods included from Indexable

#body, #ends, #first, #first!, #first=, #foot, #head, #index_of, #last, #last!, #last=, #mid, #middle, #pos, #range, #tail, #thru

Constructor Details

#initialize(delegator = nil) ⇒ SyncArray

gmosx: delegator is not yet used.



59
60
61
62
# File 'lib/more/facets/syncarray.rb', line 59

def initialize(delegator = nil)
  @sync = ::Sync.new()
  super()
end

Instance Attribute Details

#syncObject (readonly)

Returns the value of attribute sync.



54
55
56
# File 'lib/more/facets/syncarray.rb', line 54

def sync
  @sync
end