Class: Evrone::Common::Spawn::ReadTimeoutError
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- Evrone::Common::Spawn::ReadTimeoutError
- Defined in:
- lib/evrone/common/spawn/error.rb
Instance Method Summary collapse
-
#initialize(cmd, seconds) ⇒ ReadTimeoutError
constructor
A new instance of ReadTimeoutError.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd, seconds) ⇒ ReadTimeoutError
Returns a new instance of ReadTimeoutError.
22 23 24 25 |
# File 'lib/evrone/common/spawn/error.rb', line 22 def initialize(cmd, seconds) @cmd = cmd @seconds = seconds end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/evrone/common/spawn/error.rb', line 27 def to_s "No output has been received of '#{@cmd}' in the last #{@seconds} seconds" end |