Class: Mutant::CLI::Builder::Predicate::Subject
- Inherits:
-
Mutant::CLI::Builder::Predicate
- Object
- Mutant::CLI::Builder
- Mutant::CLI::Builder::Predicate
- Mutant::CLI::Builder::Predicate::Subject
- Defined in:
- lib/mutant/cli/builder.rb
Overview
Bubject predicate builder
Instance Method Summary collapse
-
#initialize ⇒ undefined
constructor
private
Initialize object.
-
#output ⇒ Object
private
Return predicate.
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
119 120 121 122 |
# File 'lib/mutant/cli/builder.rb', line 119 def initialize(*) super @predicates = [] end |
Instance Method Details
#output ⇒ Object
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 |