Class: ArchUnit::Files::FluentApi::MatchPatternFileCondition
- Inherits:
-
Object
- Object
- ArchUnit::Files::FluentApi::MatchPatternFileCondition
- Includes:
- Common::FluentApi::Checkable
- Defined in:
- lib/archunit/files/fluentapi/match_pattern_file_condition.rb
Overview
Executable file name or location predicate for either mood.
Instance Attribute Summary collapse
-
#check_filter ⇒ Object
readonly
Returns the value of attribute check_filter.
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#is_negated ⇒ Object
readonly
Returns the value of attribute is_negated.
-
#project_locator ⇒ Object
readonly
Returns the value of attribute project_locator.
Instance Method Summary collapse
-
#initialize(mood, check_filter:) ⇒ MatchPatternFileCondition
constructor
A new instance of MatchPatternFileCondition.
- #negated? ⇒ Boolean
Methods included from Common::FluentApi::Checkable
Constructor Details
#initialize(mood, check_filter:) ⇒ MatchPatternFileCondition
Returns a new instance of MatchPatternFileCondition.
18 19 20 21 22 23 24 25 26 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 18 def initialize(mood, check_filter:) validate_mood(mood) validate_check_filter(check_filter) @project_locator = mood.project_locator @filters = mood.filters @check_filter = check_filter @is_negated = mood.negated? freeze end |
Instance Attribute Details
#check_filter ⇒ Object (readonly)
Returns the value of attribute check_filter.
16 17 18 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 16 def check_filter @check_filter end |
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
16 17 18 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 16 def filters @filters end |
#is_negated ⇒ Object (readonly)
Returns the value of attribute is_negated.
16 17 18 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 16 def is_negated @is_negated end |
#project_locator ⇒ Object (readonly)
Returns the value of attribute project_locator.
16 17 18 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 16 def project_locator @project_locator end |
Instance Method Details
#negated? ⇒ Boolean
28 29 30 |
# File 'lib/archunit/files/fluentapi/match_pattern_file_condition.rb', line 28 def negated? is_negated end |