Class: ArchUnit::Slices::Uml::PlantUmlDependency
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Slices::Uml::PlantUmlDependency
- Defined in:
- lib/archunit/slices/uml/plant_uml_dependency.rb
Overview
One allowed directed component dependency from a PlantUML diagram.
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(source:, target:) ⇒ PlantUmlDependency
constructor
A new instance of PlantUmlDependency.
Constructor Details
#initialize(source:, target:) ⇒ PlantUmlDependency
Returns a new instance of PlantUmlDependency.
9 10 11 12 13 |
# File 'lib/archunit/slices/uml/plant_uml_dependency.rb', line 9 def initialize(source:, target:) source = component_name(source, :source) target = component_name(target, :target) super end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source
8 9 10 |
# File 'lib/archunit/slices/uml/plant_uml_dependency.rb', line 8 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target
8 9 10 |
# File 'lib/archunit/slices/uml/plant_uml_dependency.rb', line 8 def target @target end |