Class: RSpec::Multicore::ParallelGroups
- Inherits:
-
Object
- Object
- RSpec::Multicore::ParallelGroups
- Includes:
- Enumerable
- Defined in:
- lib/rspec/multicore/runner_patch.rb
Overview
Enumerable wrapper that substitutes parallel work only for RSpec's map call.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(groups, configuration) ⇒ ParallelGroups
constructor
A new instance of ParallelGroups.
- #map ⇒ Object
Constructor Details
#initialize(groups, configuration) ⇒ ParallelGroups
Returns a new instance of ParallelGroups.
9 10 11 12 |
# File 'lib/rspec/multicore/runner_patch.rb', line 9 def initialize(groups, configuration) @groups = groups @configuration = configuration end |
Instance Method Details
#each(&block) ⇒ Object
14 |
# File 'lib/rspec/multicore/runner_patch.rb', line 14 def each(&block) = block ? @groups.each(&block) : enum_for(:each) |