Class: ArchUnit::Files::FluentApi::CycleFreeFileCondition
- Inherits:
-
Object
- Object
- ArchUnit::Files::FluentApi::CycleFreeFileCondition
- Includes:
- Common::FluentApi::Checkable
- Defined in:
- lib/archunit/files/fluentapi/cycle_free_file_condition.rb
Overview
Executable positive rule requiring the selected file graph to be acyclic.
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#project_locator ⇒ Object
readonly
Returns the value of attribute project_locator.
Instance Method Summary collapse
-
#initialize(mood) ⇒ CycleFreeFileCondition
constructor
A new instance of CycleFreeFileCondition.
Methods included from Common::FluentApi::Checkable
Constructor Details
#initialize(mood) ⇒ CycleFreeFileCondition
Returns a new instance of CycleFreeFileCondition.
20 21 22 23 24 25 26 27 28 |
# File 'lib/archunit/files/fluentapi/cycle_free_file_condition.rb', line 20 def initialize(mood) unless mood.is_a?(PositiveMatchPatternFileConditionBuilder) raise ArgumentError, 'mood must be a positive file condition builder' end @project_locator = mood.project_locator @filters = mood.filters freeze end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
18 19 20 |
# File 'lib/archunit/files/fluentapi/cycle_free_file_condition.rb', line 18 def filters @filters end |
#project_locator ⇒ Object (readonly)
Returns the value of attribute project_locator.
18 19 20 |
# File 'lib/archunit/files/fluentapi/cycle_free_file_condition.rb', line 18 def project_locator @project_locator end |