Class: Mutant::CLI::Builder::Rspec
- Inherits:
-
Mutant::CLI::Builder
- Object
- Mutant::CLI::Builder
- Mutant::CLI::Builder::Rspec
- Defined in:
- lib/mutant/cli/builder.rb
Overview
Rspec strategy builder
Instance Method Summary collapse
-
#initialize ⇒ undefined
constructor
private
Initialize object.
-
#output ⇒ Strategy::Rspec
private
Return strategy.
Constructor Details
#initialize ⇒ undefined
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
#output ⇒ Strategy::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
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 |