Class: Uh::WM::Workers::Base
- Inherits:
-
Object
- Object
- Uh::WM::Workers::Base
- Defined in:
- lib/uh/wm/workers/base.rb
Constant Summary collapse
- CALLBACKS =
%w[before_watch on_timeout on_read on_read_next].freeze
Instance Method Summary collapse
-
#initialize(*_options) ⇒ Base
constructor
A new instance of Base.
- #watch(io) ⇒ Object
Constructor Details
#initialize(*_options) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/uh/wm/workers/base.rb', line 7 def initialize * @ios = [] end |
Instance Method Details
#watch(io) ⇒ Object
11 12 13 |
# File 'lib/uh/wm/workers/base.rb', line 11 def watch io @ios << io.to_io end |