Class: ArchUnit::Slices::Assertion::DiagramAdherenceOptions
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Slices::Assertion::DiagramAdherenceOptions
- Defined in:
- lib/archunit/slices/assertion/diagram_adherence_options.rb
Overview
Immutable modifiers controlling diagram coherence checks.
Instance Attribute Summary collapse
-
#ignore_external_slices ⇒ Object
readonly
Returns the value of attribute ignore_external_slices.
-
#ignore_orphan_slices ⇒ Object
readonly
Returns the value of attribute ignore_orphan_slices.
Instance Method Summary collapse
- #ignore_external_slices? ⇒ Boolean
- #ignore_orphan_slices? ⇒ Boolean
-
#initialize(ignore_orphan_slices: false, ignore_external_slices: false) ⇒ DiagramAdherenceOptions
constructor
A new instance of DiagramAdherenceOptions.
- #with(**overrides) ⇒ Object
Constructor Details
#initialize(ignore_orphan_slices: false, ignore_external_slices: false) ⇒ DiagramAdherenceOptions
Returns a new instance of DiagramAdherenceOptions.
9 10 11 12 13 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 9 def initialize(ignore_orphan_slices: false, ignore_external_slices: false) validate_boolean(ignore_orphan_slices, :ignore_orphan_slices) validate_boolean(ignore_external_slices, :ignore_external_slices) super end |
Instance Attribute Details
#ignore_external_slices ⇒ Object (readonly)
Returns the value of attribute ignore_external_slices
8 9 10 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 8 def ignore_external_slices @ignore_external_slices end |
#ignore_orphan_slices ⇒ Object (readonly)
Returns the value of attribute ignore_orphan_slices
8 9 10 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 8 def ignore_orphan_slices @ignore_orphan_slices end |
Instance Method Details
#ignore_external_slices? ⇒ Boolean
23 24 25 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 23 def ignore_external_slices? ignore_external_slices end |
#ignore_orphan_slices? ⇒ Boolean
19 20 21 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 19 def ignore_orphan_slices? ignore_orphan_slices end |
#with(**overrides) ⇒ Object
15 16 17 |
# File 'lib/archunit/slices/assertion/diagram_adherence_options.rb', line 15 def with(**overrides) self.class.new(**to_h, **overrides) end |