Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.379 kB
require 'place'
class World
attr_accessor :place
def initialize(place_list=[])
@places = {}
place_list.each do |p|
name = p[:name]
description = p[:description]
options = p[:options]
@places[name] = Place.new(name, description, options)
end
end
def find_place(place_name)
@places[place_name]
end
end
Jump to Line
Something went wrong with that request. Please try again.