Module: AgentOrange

Defined in:
lib/agent_orange.rb,
lib/agent_orange/base.rb,
lib/agent_orange/device.rb,
lib/agent_orange/engine.rb,
lib/agent_orange/browser.rb,
lib/agent_orange/version.rb,
lib/agent_orange/platform.rb,
lib/agent_orange/user_agent.rb,
lib/agent_orange/operating_system.rb

Defined Under Namespace

Classes: Base, Browser, Device, Engine, OperatingSystem, Platform, UserAgent, Version

Constant Summary collapse

VERSION =

This is for the gem and does not conflict with the rest of the functionality

"0.1.6"
DEBUG =
false
DEBUG_LEVEL =
1

Class Method Summary collapse

Class Method Details

.debug(str = "", level = 1) ⇒ Object



89
90
91
# File 'lib/agent_orange/user_agent.rb', line 89

def self.debug(str="", level=1)
  puts str if DEBUG && (DEBUG_LEVEL >= level)
end