Class: ArchUnit::Slices::Uml::PlantUmlDependency

Inherits:
Data
  • Object
show all
Defined in:
lib/archunit/slices/uml/plant_uml_dependency.rb

Overview

One allowed directed component dependency from a PlantUML diagram.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



8
9
10
# File 'lib/archunit/slices/uml/plant_uml_dependency.rb', line 8

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



8
9
10
# File 'lib/archunit/slices/uml/plant_uml_dependency.rb', line 8

def target
  @target
end