More rdoc tweaks.

master
Doug Fales 2010-02-27 16:19:03 -07:00
parent 37886363be
commit 39d1d89aad
1 changed files with 7 additions and 7 deletions

View File

@ -18,15 +18,15 @@ etc).
== Examples
Reading a GPX file, and cropping its contents to a given area:
<tt>gpx = GPX::GPXFile.new(:gpx_file => filename) # Read GPX file</tt>
<tt>bounds = GPX::Bounds.new(params) # Create a rectangular area to crop</tt>
<tt>gpx.crop(bounds) # Crop it</tt>
<tt>gpx.write(filename) # Save it</tt>
gpx = GPX::GPXFile.new(:gpx_file => filename) # Read GPX file
bounds = GPX::Bounds.new(params) # Create a rectangular area to crop
gpx.crop(bounds) # Crop it
gpx.write(filename) # Save it
Converting a Magellan track log to GPX:
<tt>if GPX::MagellanTrackLog::is_magellan_file?(filename)</tt>
<tt> GPX::MagellanTrackLog::convert_to_gpx(filename, "#{filename}.gpx")</tt>
<tt>end</tt>
if GPX::MagellanTrackLog::is_magellan_file?(filename)
GPX::MagellanTrackLog::convert_to_gpx(filename, "#{filename}.gpx")
end
== Notes