Class: Mutant::CLI::Builder

Inherits:
Object
  • Object
show all
Includes:
AbstractType
Defined in:
lib/mutant/cli/builder.rb

Overview

Abstract base class for strategy builders

Direct Known Subclasses

Predicate, Rspec

Defined Under Namespace

Classes: Predicate, Rspec

Instance Method Summary collapse

Constructor Details

#initialize(cache, parser) ⇒ Builder

Initialize builder

Parameters:

  • parser (OptionParser)


33
34
35
36
# File 'lib/mutant/cli/builder.rb', line 33

def initialize(cache, parser)
  @cache, @parser = cache, parser
  add_options
end

Instance Method Details

#add_optionsself

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.

Add cli options

Parameters:

  • (OptionParser)

Returns:

  • (self)


46
# File 'lib/mutant/cli/builder.rb', line 46

abstract_method :add_options

#outputObject

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 build output

Returns:

  • (Object)


54
# File 'lib/mutant/cli/builder.rb', line 54

abstract_method :output