Sha256: 1f92d28e6d7054a5efaa78592d3bf7e0ae6947943ac4d36f1985e4dad2859f56
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
# encoding: utf-8 module GpxTrackGenerator # Main api module Api def self.generate(input_files:, track_name:, output_file:, reverse: false, single_segment: false) files = input_files.map { |f| GpxFile.new(File.expand_path(f)) } track = Track.new( files, name: track_name, reverse: reverse, single_segment: single_segment ) File.write(output_file, track.to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gpx_track_generator-0.3.5 | lib/gpx_track_generator/api.rb |