Class: ScoutApm::ServerIntegrations::Webrick

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/server_integrations/webrick.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#loggerObject (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

Returns:

  • (Boolean)


14
# File 'lib/scout_apm/server_integrations/webrick.rb', line 14

def forking?; false; end

#found?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/scout_apm/server_integrations/webrick.rb', line 24

def found?
  true
end

#installObject

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

#nameObject



10
11
12
# File 'lib/scout_apm/server_integrations/webrick.rb', line 10

def name
  :webrick
end

#present?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/scout_apm/server_integrations/webrick.rb', line 16

def present?
  defined?(::WEBrick) && defined?(::WEBrick::VERSION)
end