Sha256: 24e355928b06d71f2d720489461aff7f6de84331ca3572e2f51fc8a37cae9639
Contents?: true
Size: 221 Bytes
Versions: 1
Compression:
Stored size: 221 Bytes
Contents
require 'yaml' module BotChecker class Lister def initialize @list = YAML.load_file('lib/bot_checker/bot_agents.yml') end def include?(user_agent) @list.include?(user_agent) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bot_checker-0.0.1 | lib/bot_checker/lister.rb |