123456789_123456789_123456789_123456789_123456789_

Module: Process

Relationships & Source Files
Defined in: lib/simplecov/process.rb

Class Method Summary

Class Method Details

.fork(&block)

[ GitHub ]

  
# File 'lib/simplecov/process.rb', line 17

alias fork fork_with_simplecov

.fork_with_simplecov(&block) Also known as: .fork

[ GitHub ]

  
# File 'lib/simplecov/process.rb', line 5

def fork_with_simplecov(&block)
  if defined?(SimpleCov) && SimpleCov.running
    fork_without_simplecov do
      SimpleCov.at_fork.call(Process.pid)
      yield if block
    end
  else
    fork_without_simplecov(&block)
  end
end

.fork_without_simplecov

[ GitHub ]

  
# File 'lib/simplecov/process.rb', line 16

alias fork_without_simplecov fork