Class: Browser::Bot::KeywordMatcher

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

Class Method Summary collapse

Class Method Details

.call(ua, _browser) ⇒ Object



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

def self.call(ua, _browser)
  ua.match?(/crawl|fetch|search|monitoring|spider|bot/)
end