Class: Rbgo::SyncSet

Inherits:
Object
  • Object
show all
Defined in:
lib/rbgo/synchronized_collection.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enum = nil) ⇒ SyncSet

Returns a new instance of SyncSet.



62
63
64
65
# File 'lib/rbgo/synchronized_collection.rb', line 62

def initialize(enum = nil)
  @s = Set.new(enum)
  @s.extend(MonitorMixin)
end

Class Method Details

.[](*args) ⇒ Object



58
59
60
# File 'lib/rbgo/synchronized_collection.rb', line 58

def self.[](*args)
  SyncSet.new(Set.[](*args))
end