Module: Mutant::Isolation::None

Defined in:
lib/mutant/isolation.rb

Class Method Summary collapse

Class Method Details

.call(&block) ⇒ Object

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.

Call block in isolation

Returns:

  • (Object)

Raises:

  • (Error)

    if block terminates abnormal


17
18
19
20
21
# File 'lib/mutant/isolation.rb', line 17

def self.call(&block)
  block.call
rescue => exception
  raise Error, exception
end