lib/greygoo/player.rb
def broadcast_to(room, msg)
			m = GreyGoo::Message.new({ from: self, to: room, text: msg })
			m.save!
			room.broadcast(m)
		end
# Broadcast a message to a room
#
# @param [GreyGoo::Room] room
# @param [String] msg
Broadcast a message to a room
Broadcast a message to a room
def broadcast_to(room, msg)
			m = GreyGoo::Message.new({ from: self, to: room, text: msg })
			m.save!
			room.broadcast(m)
		end
def broadcast_to ( room , msg ) m = GreyGoo :: Message . new ( { from : self , to : room , text : msg } ) m . save! room . broadcast ( m ) end
Broadcast a message to a room
Broadcast a message to a room
room
msg
None