Class: ArchUnit::Slices::FluentApi::DiagramSliceCondition
- Inherits:
-
Object
- Object
- ArchUnit::Slices::FluentApi::DiagramSliceCondition
- Includes:
- Common::FluentApi::Checkable
- Defined in:
- lib/archunit/slices/fluentapi/diagram_slice_condition.rb
Overview
Executable slices should adhere to diagram rule.
Instance Attribute Summary collapse
-
#diagram_source ⇒ Object
readonly
Returns the value of attribute diagram_source.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#project_locator ⇒ Object
readonly
Returns the value of attribute project_locator.
-
#projection ⇒ Object
readonly
Returns the value of attribute projection.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope, diagram_source, options:) ⇒ DiagramSliceCondition
constructor
A new instance of DiagramSliceCondition.
- #negated? ⇒ Boolean
Methods included from Common::FluentApi::Checkable
Constructor Details
#initialize(scope, diagram_source, options:) ⇒ DiagramSliceCondition
Returns a new instance of DiagramSliceCondition.
18 19 20 21 22 23 24 25 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 18 def initialize(scope, diagram_source, options:) @scope = scope_value(scope) @project_locator = scope.project_locator @projection = scope.projection @diagram_source = diagram_source_value(diagram_source) @options = () freeze end |
Instance Attribute Details
#diagram_source ⇒ Object (readonly)
Returns the value of attribute diagram_source.
16 17 18 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16 def diagram_source @diagram_source end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
16 17 18 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16 def @options end |
#project_locator ⇒ Object (readonly)
Returns the value of attribute project_locator.
16 17 18 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16 def project_locator @project_locator end |
#projection ⇒ Object (readonly)
Returns the value of attribute projection.
16 17 18 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16 def projection @projection end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
16 17 18 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16 def scope @scope end |
Instance Method Details
#negated? ⇒ Boolean
27 28 29 |
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 27 def negated? false end |