Class: Async::Signals::Controller::Registration
- Inherits:
-
Object
- Object
- Async::Signals::Controller::Registration
- Defined in:
- lib/async/signals/controller.rb
Overview
Represents an installed set of signal handlers.
Instance Method Summary collapse
-
#close ⇒ Object
Remove this registration from the controller.
-
#initialize(controller, handlers) ⇒ Registration
constructor
Initialize the registration.
Constructor Details
#initialize(controller, handlers) ⇒ Registration
Initialize the registration.
88 89 90 91 |
# File 'lib/async/signals/controller.rb', line 88 def initialize(controller, handlers) @controller = controller @handlers = handlers end |
Instance Method Details
#close ⇒ Object
Remove this registration from the controller.
94 95 96 97 98 99 |
# File 'lib/async/signals/controller.rb', line 94 def close if handlers = @handlers @handlers = nil @controller.remove(self, handlers) end end |