Class: Mutant::CLI::Builder::Rspec

Inherits:
Mutant::CLI::Builder show all
Defined in:
lib/mutant/cli/builder.rb

Overview

Rspec strategy builder

Instance Method Summary collapse

Constructor Details

#initializeundefined

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.

Initialize object



65
66
67
68
69
# File 'lib/mutant/cli/builder.rb', line 65

def initialize(*)
  @level = 0
  @rspec = false
  super
end

Instance Method Details

#outputStrategy::Rspec

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.

Return strategy

Returns:



77
78
79
80
81
82
83
# File 'lib/mutant/cli/builder.rb', line 77

def output
  unless @rspec
    raise Error, 'No strategy given'
  end

  Strategy::Rspec.new(@level)
end