Object
# File test/browser_detect_test.rb, line 41 41: def initialize(user_agent=nil) 42: @user_agent = user_agent 43: end
# File test/browser_detect_test.rb, line 49 49: def mock_req 50: req = Object.new 51: metaclass = class << req; self; end 52: user_agent = @user_agent 53: metaclass.send :define_method, :env, Proc.new { {'HTTP_USER_AGENT' => user_agent} } 54: req 55: end
# File test/browser_detect_test.rb, line 45 45: def request 46: @req ||= mock_req 47: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.