Sha256: 00621f11647858d82b4fbde09e884fc0d09fc08760261cc255850b05044c8f73
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
require 'importer/garmin' require 'importer/polar' require 'importer/suunto' module Importer def Importer.file_type(name) case name when /\.tcx$/i return "GARMIN_XML" when /\.hrm$/i return "POLAR_HRM" when /\.sdf$/i return "SUUNTO" end end def Importer.read_in_file(name) if File.readable?(name) return open(name, "r") else puts "FILE ERROR, can't read #{name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teich-hrmparser-0.4.0 | lib/hrmparser/importer.rb |