File: bot.rb

package info (click to toggle)
ruby-device-detector 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,820 kB
  • sloc: ruby: 3,650; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 185 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class DeviceDetector
  class Bot < Parser
    def bot?
      regex_meta.any?
    end

    private

    def filenames
      ['bots.yml']
    end
  end
end