vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/examples/chatserver.rb
def broadcastMsgFrom( user, msg )
		userDesc = user.to_s

		@users.each {|cl|
			next if cl == user
			cl.addOutput( "#{userDesc}>> #{msg}" )
		}
	end
### Broadcast the specified message from the specified user
Broadcast the specified message from the specified user
Broadcast the specified message from the specified user
def broadcastMsgFrom( user, msg )
		userDesc = user.to_s
		@users.each {|cl|
			next if cl == user
			cl.addOutput( "#{userDesc}>> #{msg}" )
		}
	end
def broadcastMsgFrom ( user , msg ) userDesc = user . to_s @users . each { | cl | next if cl == user cl . addOutput ( "#{userDesc}>> #{msg}" ) } end
Broadcast the specified message from the specified user
Broadcast the specified message from the specified user
user
msg