Class: RequestInfo::EnvAnalyzer
- Inherits:
-
Object
- Object
- RequestInfo::EnvAnalyzer
- Defined in:
- lib/request_info/env_analyzer.rb
Instance Method Summary collapse
- #analyze(_env) ⇒ Object
-
#initialize(detectors) ⇒ EnvAnalyzer
constructor
A new instance of EnvAnalyzer.
- #wrap_app ⇒ Object
Constructor Details
#initialize(detectors) ⇒ EnvAnalyzer
Returns a new instance of EnvAnalyzer.
6 7 8 |
# File 'lib/request_info/env_analyzer.rb', line 6 def initialize(detectors) detectors.each { |d| extend(d) } end |
Instance Method Details
#analyze(_env) ⇒ Object
10 11 12 |
# File 'lib/request_info/env_analyzer.rb', line 10 def analyze(_env) RequestInfo.results = RequestInfo::Results.new end |
#wrap_app ⇒ Object
14 15 16 |
# File 'lib/request_info/env_analyzer.rb', line 14 def wrap_app yield end |