Module: BrowserWarrior

Defined in:
lib/browser_warrior.rb,
lib/browser_warrior/engine.rb,
lib/browser_warrior/version.rb,
lib/generators/browser_warrior/views/views_generator.rb,
lib/generators/browser_warrior/install/install_generator.rb

Defined Under Namespace

Modules: Controllers, Generators Classes: Engine

Constant Summary collapse

ROOT =
File.expand_path(File.join( File.dirname(__FILE__), '..'))
VERSION =
'0.13.0'
@@autoenable =
true

Class Method Summary collapse

Class Method Details

.detect(&block) ⇒ Object



67
68
69
# File 'lib/browser_warrior.rb', line 67

def self.detect(&block)
  @detect_block = block
end

.do_detect(browser) ⇒ Object



71
72
73
# File 'lib/browser_warrior.rb', line 71

def self.do_detect(browser)
  @detect_block.call(browser)
end