Class: Mutant::CLI::Builder::Predicate::Subject

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

Overview

Bubject predicate 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



119
120
121
122
# File 'lib/mutant/cli/builder.rb', line 119

def initialize(*)
  super
  @predicates = []
end

Instance Method Details

#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 predicate



128
129
130
131
132
133
134
# File 'lib/mutant/cli/builder.rb', line 128

def output
  if @predicates.empty?
    Mutant::Predicate::CONTRADICTION
  else
    Mutant::Predicate::Whitelist.new(@predicates)
  end
end