Class: Mutant::Isolation::Result Private
- Inherits:
-
Object
- Object
- Mutant::Isolation::Result
- Includes:
- AbstractType, Adamantium
- Defined in:
- lib/mutant/isolation.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.
Isolated computation result
Direct Known Subclasses
Fork::ChildError, Fork::ForkError, ErrorChain, Exception, Success
Defined Under Namespace
Classes: ErrorChain, Exception, Success
Constant Summary collapse
- NULL_LOG =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
''
Instance Method Summary collapse
-
#add_error(error) ⇒ Result
private
Add error on top of current result.
-
#log ⇒ String
private
The log captured from integration.
-
#success? ⇒ Boolean
private
Test for success.
Instance Method Details
#add_error(error) ⇒ Result
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.
Add error on top of current result
25 26 27 |
# File 'lib/mutant/isolation.rb', line 25 def add_error(error) ErrorChain.new(error, self) end |
#log ⇒ String
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.
The log captured from integration
32 33 34 |
# File 'lib/mutant/isolation.rb', line 32 def log NULL_LOG end |
#success? ⇒ 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 for success
39 40 41 |
# File 'lib/mutant/isolation.rb', line 39 def success? instance_of?(Success) end |