Module: Map::Tube

Defined in:
lib/map/tube.rb,
lib/map/tube/line.rb,
lib/map/tube/graph.rb,
lib/map/tube/route.rb,
lib/map/tube/parser.rb,
lib/map/tube/station.rb,
lib/map/tube/version.rb,
lib/map/tube/graphviz.rb,
lib/map/tube/exceptions.rb,
lib/map/tube/map_loader.rb

Defined Under Namespace

Modules: Exceptions Classes: Graph, Graphviz, Line, MapLoader, Parser, Route, Station

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.new(city_name) ⇒ Object



15
16
17
# File 'lib/map/tube.rb', line 15

def self.new(city_name)
  MapLoader.new(city_name)
end

.new_from_xml(city_name, xml_file_path) ⇒ Object



19
20
21
# File 'lib/map/tube.rb', line 19

def self.new_from_xml(city_name, xml_file_path)
  MapLoader.new(city_name, xml_file_path)
end