Class: Unicorn::HttpServer::Worker

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#nrObject

Returns the value of attribute nr

Returns:

  • (Object)

    the current value of nr



114
115
116
# File 'lib/unicorn.rb', line 114

def nr
  @nr
end

#tmpObject

Returns the value of attribute tmp

Returns:

  • (Object)

    the current value of 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