Class: Mutant::Variable::Result Private
- Inherits:
-
Object
- Object
- Mutant::Variable::Result
- Defined in:
- lib/mutant/variable.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Result of operation that may time out
Defined Under Namespace
Instance Attribute Summary collapse
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(value) ⇒ undefined
constructor
private
Initialize result.
-
#timeout? ⇒ Boolean
private
Test if take resulted in a timeout.
Constructor Details
#initialize(value) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize result
24 25 26 27 |
# File 'lib/mutant/variable.rb', line 24 def initialize(value) @value = value freeze end |
Instance Attribute Details
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/mutant/variable.rb', line 19 def value @value end |
Instance Method Details
#timeout? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if take resulted in a timeout
34 35 36 |
# File 'lib/mutant/variable.rb', line 34 def timeout? instance_of?(Timeout) end |