Class: Mutant::CLI::Builder
- Inherits:
-
Object
- Object
- Mutant::CLI::Builder
- Includes:
- NodeHelpers
- Defined in:
- lib/mutant/cli.rb
Overview
Builder for configuration components
Constant Summary
Constants included from NodeHelpers
NodeHelpers::INFINITY, NodeHelpers::NAN, NodeHelpers::NEGATIVE_INFINITY, NodeHelpers::NEW_OBJECT, NodeHelpers::N_EMPTY, NodeHelpers::N_FALSE, NodeHelpers::N_NIL, NodeHelpers::N_TRUE, NodeHelpers::RAISE
Instance Method Summary collapse
-
#add_matcher(matcher) ⇒ self
private
Add a subject matcher.
-
#add_subject_ignore(matcher) ⇒ self
private
Add a subject ignore.
-
#add_subject_selector(selector) ⇒ self
Add a subject selector.
-
#initialize ⇒ undefined
constructor
private
Initalize object.
- #matcher ⇒ Object
Methods included from NodeHelpers
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.
Initalize object
45 46 47 48 49 |
# File 'lib/mutant/cli.rb', line 45 def initialize @matchers = [] @subject_ignores = [] @subject_selectors = [] end |
Instance Method Details
#add_matcher(matcher) ⇒ self
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 a subject matcher
82 83 84 85 |
# File 'lib/mutant/cli.rb', line 82 def add_matcher(matcher) @matchers << matcher self end |
#add_subject_ignore(matcher) ⇒ self
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 a subject ignore
59 60 61 62 |
# File 'lib/mutant/cli.rb', line 59 def add_subject_ignore(matcher) @subject_ignores << matcher self end |
#add_subject_selector(selector) ⇒ self
Add a subject selector
69 70 71 72 |
# File 'lib/mutant/cli.rb', line 69 def add_subject_selector(selector) @subject_selectors << selector self end |