module VoightKampff

Constants

VERSION

Public Class Methods

bot?(user_agent_string) click to toggle source
# File lib/voight_kampff.rb, line 19
def bot?(user_agent_string)
  test(user_agent_string).bot?
end
Also aliased as: replicant?
human?(user_agent_string) click to toggle source
# File lib/voight_kampff.rb, line 15
def human?(user_agent_string)
  test(user_agent_string).human?
end
replicant?(user_agent_string)
Alias for: bot?
root() click to toggle source
# File lib/voight_kampff.rb, line 10
def root
  require 'pathname'
  Pathname.new File.expand_path '..', File.dirname(__FILE__)
end

Private Class Methods

test(user_agent_string) click to toggle source
# File lib/voight_kampff.rb, line 26
def test(user_agent_string)
  VoightKampff::Test.new(user_agent_string)
end