Class: Mutant::Matcher::Config Private
- Inherits:
-
Object
- Object
- Mutant::Matcher::Config
- Includes:
- Adamantium
- Defined in:
- lib/mutant/matcher/config.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Subject matcher configuration
:reek:TooManyConstants
Constant Summary collapse
- INSPECT_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"#<#{self} %s>".freeze
- ATTRIBUTE_DELIMITER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
' '.freeze
- ATTRIBUTE_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'%s: [%s]'.freeze
- ENUM_DELIMITER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
','.freeze
- EMPTY_ATTRIBUTES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'empty'.freeze
- PRESENTATIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
IceNine.deep_freeze( ignore_expressions: :syntax, match_expressions: :syntax, subject_filters: :inspect )
- DEFAULT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
new(Hash[anima.attribute_names.map { |name| [name, []] }])
Instance Method Summary collapse
-
#add(attribute, value) ⇒ Config
private
Add value to configurable collection.
-
#inspect ⇒ String
private
Inspection string.
Instance Method Details
#add(attribute, value) ⇒ Config
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 value to configurable collection
41 42 43 |
# File 'lib/mutant/matcher/config.rb', line 41 def add(attribute, value) with(attribute => public_send(attribute) + [value]) end |
#inspect ⇒ String
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.
Inspection string
30 31 32 |
# File 'lib/mutant/matcher/config.rb', line 30 def inspect INSPECT_FORMAT % inspect_attributes end |