Class: Unicorn::HttpServer::Worker
- Inherits:
-
Struct
- Object
- Struct
- Unicorn::HttpServer::Worker
- Defined in:
- lib/unicorn.rb
Overview
This class and its members can be considered a stable interface and will not change in a backwards-incompatible fashion between releases of Unicorn. You may need to access it in the before_fork/after_fork hooks. See the Unicorn::Configurator RDoc for examples.
Instance Attribute Summary collapse
-
#nr ⇒ Object
Returns the value of attribute nr.
-
#tmp ⇒ Object
Returns the value of attribute tmp.
Instance Method Summary collapse
-
#==(other_nr) ⇒ Object
worker objects may be compared to just plain numbers.
Instance Attribute Details
#nr ⇒ Object
Returns the value of attribute nr
114 115 116 |
# File 'lib/unicorn.rb', line 114 def nr @nr end |
#tmp ⇒ Object
Returns the value of attribute tmp
114 115 116 |
# File 'lib/unicorn.rb', line 114 def tmp @tmp end |
Instance Method Details
#==(other_nr) ⇒ Object
worker objects may be compared to just plain numbers
117 118 119 |
# File 'lib/unicorn.rb', line 117 def ==(other_nr) self.nr == other_nr end |