Sha256: 61fa1485ffed1c5b78e33de13adf19e6e0b62d4924e12815ef3dde4c923b7a4a

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 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, mode = :race )
      # 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

1 entries across 1 versions & 1 rubygems

Version Path
antw-dyno-0.1.3 lib/dyno/parsers/gtr2_parser.rb