lib/greygoo/room.rb
def add_exit(direction, room)
			if direction.empty?
				raise GreyGoo::Error, "Direction can't be empty"
			end
			exits[direction] = room
			db_set({}, { "exits.#{direction}" => room.id.to_db })
		end
# Adds a one-way exit to another room
#
# @param [String] direction A key representing the direction of the exit
# @param [GreyGoo::Room] room The room to connect to
Adds a one-way exit to another room
Adds a one - way exit to another room
def add_exit(direction, room)
			if direction.empty?
				raise GreyGoo::Error, "Direction can't be empty"
			end
			exits[direction] = room
			db_set({}, { "exits.#{direction}" => room.id.to_db })
		end
def add_exit ( direction , room ) if direction . empty? raise GreyGoo :: Error , "Direction can't be empty" end exits [ direction ] = room db_set ( { } , { "exits.#{direction}" => room . id . to_db } ) end
Adds a one-way exit to another room
Adds a one - way exit to another room
direction
room
room The room to connect to
room The room to connect to