Sha256: 49d34529888de2b4a0fdcf46597e9815c3d061ae958a86340a01b142345e3315

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

module Dyno::Parsers
  ##
  # Parses a Race 07 results file which are almost identical to Race 07 files.
  #
  class GTR2Parser < Race07Parser
    def self.parse_file( filename )
      # GTR2 files start with a line which isn't valid INI; remove it.
      parse( IniParse.parse(
        File.read( filename ).sub!(/^.*\n/, '')
      ) )
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
anthonyw-dyno-0.1.0 lib/dyno/parsers/gtr2_parser.rb
anthonyw-dyno-0.1.1 lib/dyno/parsers/gtr2_parser.rb
antw-dyno-0.1.2 lib/dyno/parsers/gtr2_parser.rb