Class: Dump::ContiniousTimeout::Deferer
- Inherits:
-
Object
- Object
- Dump::ContiniousTimeout::Deferer
- Defined in:
- lib/dump/continious_timeout.rb
Overview
Object with defer method
Instance Method Summary collapse
- #defer ⇒ Object
-
#initialize(thread) ⇒ Deferer
constructor
A new instance of Deferer.
Constructor Details
#initialize(thread) ⇒ Deferer
Returns a new instance of Deferer.
12 13 14 |
# File 'lib/dump/continious_timeout.rb', line 12 def initialize(thread) @thread = thread end |
Instance Method Details
#defer ⇒ Object
16 17 18 |
# File 'lib/dump/continious_timeout.rb', line 16 def defer @thread.raise RestartException.new end |