Main detect method to scan all platforms for a match
Returns:
Train::Platform instance or error if none found
8 9 10
# File 'lib/train/platforms/detect.rb', line 8 def self.scan(backend) Scanner.new(backend).scan end