examples/chatserver.rb
### 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 broadcast_msg_from( user, msg )
		userDesc = user.to_s
		@users.each do |cl|
			next if cl == user
			cl.add_output( "#{userDesc}>> #{msg}" )
		end
	end
def broadcast_msg_from ( user , msg ) userDesc = user . to_s @users . each do | cl | next if cl == user cl . add_output ( "#{userDesc}>> #{msg}" ) end end
Broadcast the specified message from the specified user
Broadcast the specified message from the specified user
user
msg