adventure.rb
# Represents a location in the world
Represents a location in the world
Represents a location in the world
def room(name, description='', &block)
		r = case name
			when Adventure::Room
				name
			else
				name = Adventure::resolve(name)
				@@rooms[name] ||= Adventure::Room.new(name, description)
		end
		r.instance_eval(&block) if block
		r
	end
def room ( name , description = '' , & block ) r = case name when Adventure :: Room name else name = Adventure :: resolve ( name ) @@rooms [ name ] ||= Adventure :: Room . new ( name , description ) end r . instance_eval ( & block ) if block r end
Represents a location in the world
Represents a location in the world
name
<not_specific>
description
<not_specific>
block
<not_specific>