Class: Mutant::Isolation::Result Private

Inherits:
Object
  • Object
show all
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

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

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

Parameters:

Returns:



25
26
27
# File 'lib/mutant/isolation.rb', line 25

def add_error(error)
  ErrorChain.new(error, self)
end

#logString

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

Returns:

  • (String)


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

Returns:

  • (Boolean)


39
40
41
# File 'lib/mutant/isolation.rb', line 39

def success?
  instance_of?(Success)
end