File: detect.rb

package info (click to toggle)
ruby-train 3.2.28-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,116 kB
  • sloc: ruby: 9,246; sh: 17; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# encoding: utf-8

module Train::Platforms
  module Detect
    # Main detect method to scan all platforms for a match
    #
    # @return Train::Platform instance or error if none found
    def self.scan(backend)
      Scanner.new(backend).scan
    end
  end
end