Method: Trip#stops

Defined in:
lib/caltrain/trip.rb

#stops(dir = @direction) ⇒ Object



82
83
84
85
# File 'lib/caltrain/trip.rb', line 82

def stops(dir=@direction)
  @stops ||= Schedule.stop_order.select { |stop| time_data.map_nth(3).any? { |d| d =~ /^#{Schedule.abbrevs[stop]}/ }  }
  dir == :north ? @stops : @stops.reverse
end