Sha256: 5fc283a26b3d4caf7c51772440a6db4b8d9678bf63ef1c31d8bb91f92f65617c
Contents?: true
Size: 206 Bytes
Versions: 2
Compression:
Stored size: 206 Bytes
Contents
class Browser module Bots BOTS = YAML.load_file(File.expand_path("../../../../bots.yml", __FILE__)) def bot? ua.empty? || BOTS.any? {|key, description| ua.include?(key) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
browser-0.4.1 | lib/browser/methods/bots.rb |
browser-0.4.0 | lib/browser/methods/bots.rb |