Class: ArchUnit::Slices::FluentApi::DiagramSliceCondition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Common::FluentApi::Checkable

#check

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 = options_value(options)
  freeze
end

Instance Attribute Details

#diagram_sourceObject (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

#optionsObject (readonly)

Returns the value of attribute options.



16
17
18
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 16

def options
  @options
end

#project_locatorObject (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

#projectionObject (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

#scopeObject (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

Returns:

  • (Boolean)


27
28
29
# File 'lib/archunit/slices/fluentapi/diagram_slice_condition.rb', line 27

def negated?
  false
end