class MessageBus::ConnectionManager::SynchronizedSet
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/message_bus/connection_manager.rb, line 9 def initialize super @set = Set.new end
synchronize(methods)
click to toggle source
# File lib/message_bus/connection_manager.rb, line 14 def self.synchronize(methods) methods.each do |method| define_method method do |*args, &blk| synchronize do @set.send method,*args,&blk end end end end