Module: Process
Relationships & Source Files | |
Defined in: | lib/simplecov/process.rb |
Class Method Summary
-
.fork(&block)
Alias for .fork_with_simplecov.
- .fork_with_simplecov(&block) (also: .fork)
- .fork_without_simplecov
Class Method Details
.fork(&block)
Alias for .fork_with_simplecov.
# 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