Class: RequestInfo::EnvAnalyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/request_info/env_analyzer.rb

Instance Method Summary collapse

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_appObject



14
15
16
# File 'lib/request_info/env_analyzer.rb', line 14

def wrap_app
  yield
end