Method: NoSE::Plans::ExecutionPlans#initialize
- Defined in:
- lib/nose/plans/execution_plan.rb
#initialize(&block) ⇒ ExecutionPlans
Returns a new instance of ExecutionPlans.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/nose/plans/execution_plan.rb', line 13 def initialize(&block) @groups = Hash.new { |h, k| h[k] = [] } @weights = Hash.new { |h, k| h[k] = {} } @mix = :default instance_eval(&block) if block_given? # Reset the mix to force weight assignment self.mix = @mix end |