Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor cif file parsing

  • Loading branch information...
commit 28ace40456f14445766d96a99a9c2c1bab7957d9 1 parent 07a2bc0
@kaerast authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/uktransport/cif.rb
View
6 lib/uktransport/cif.rb
@@ -14,9 +14,11 @@ def initialize(filename)
datafile = open(filename)
datafile.readlines.each { |line|
if ((line =~ /^QS/) == 0)
- @routes.push(line.scan(@@service_regex))
+ route = line.scan(@@service_regex)
+ @routes.push(route)
elsif ((line =~ /^QL/) == 0)
- @stops.push(line.scan(@@location_regex))
+ stop = line.scan(@@location_regex)
+ @stops.push(stop)
end
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.