Module: MapSource
- Defined in:
- lib/mapsource/structure.rb,
lib/mapsource.rb,
lib/mapsource/defs.rb,
lib/mapsource/reader.rb,
lib/mapsource/version.rb
Overview
Defines the structure
Defined Under Namespace
Classes: Color, Header, InvalidFormatError, Reader, Track, UnsupportedVersionError, Waypoint
Constant Summary collapse
- COLORS =
Public: A set of default colors.
[ Color.new('Unknown'), Color.new('Black', 0, 0, 0), Color.new('DarkRed', 139, 0, 0), Color.new('DarkGreen', 0, 100, 0), Color.new('DarkYellow', 139, 139, 0), Color.new('DarkBlue', 0, 0, 139), Color.new('DarkMagenta', 139, 0, 139), Color.new('DarkCyan', 0, 139, 139), Color.new('LightGray', 211, 211, 211), Color.new('DarkGray', 169, 169, 169), Color.new('Red', 255, 0, 0), Color.new('Green', 0, 255, 0), Color.new('Yellow', 255, 255, 0), Color.new('Blue', 0, 0, 255), Color.new('Magenta', 255, 0, 255), Color.new('Cyan', 0, 255, 255), Color.new('White', 255, 255, 255), Color.new('Transparent') ]
- VERSION =
"0.2.1"
Class Method Summary collapse
-
.read(path) ⇒ Object
Public: Reads a GDB file and returns a Ruby-friendly representation.