Class: Browser::Bot::KnownBotsMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/browser/bot/known_bots_matcher.rb

Class Method Summary collapse

Class Method Details

.call(ua, _browser) ⇒ Object



6
7
8
# File 'lib/browser/bot/known_bots_matcher.rb', line 6

def self.call(ua, _browser)
  Browser::Bot.bots.any? {|key, _| ua.include?(key) }
end