Class: ScoutApm::ServerIntegrations::Webrick
- Inherits:
-
Object
- Object
- ScoutApm::ServerIntegrations::Webrick
- Defined in:
- lib/scout_apm/server_integrations/webrick.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #forking? ⇒ Boolean
- #found? ⇒ Boolean
-
#initialize(logger) ⇒ Webrick
constructor
A new instance of Webrick.
-
#install ⇒ Object
TODO: What does it mean to install on a non-forking env?.
- #name ⇒ Object
- #present? ⇒ Boolean
Constructor Details
#initialize(logger) ⇒ Webrick
Returns a new instance of Webrick.
6 7 8 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 6 def initialize(logger) @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 4 def logger @logger end |
Instance Method Details
#forking? ⇒ Boolean
14 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 14 def forking?; false; end |
#found? ⇒ Boolean
24 25 26 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 24 def found? true end |
#install ⇒ Object
TODO: What does it mean to install on a non-forking env?
21 22 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 21 def install end |
#name ⇒ Object
10 11 12 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 10 def name :webrick end |
#present? ⇒ Boolean
16 17 18 |
# File 'lib/scout_apm/server_integrations/webrick.rb', line 16 def present? defined?(::WEBrick) && defined?(::WEBrick::VERSION) end |