Class: ArchUnit::Common::Projection::ProjectedNode
- Inherits:
-
Data
- Object
- Data
- ArchUnit::Common::Projection::ProjectedNode
- Defined in:
- lib/archunit/common/projection/projected_node.rb
Overview
A graph node with its incoming and outgoing raw dependency edges.
Instance Attribute Summary collapse
-
#incoming ⇒ Object
readonly
Returns the value of attribute incoming.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#outgoing ⇒ Object
readonly
Returns the value of attribute outgoing.
Instance Method Summary collapse
-
#initialize(label:, incoming: [], outgoing: []) ⇒ ProjectedNode
constructor
A new instance of ProjectedNode.
Constructor Details
#initialize(label:, incoming: [], outgoing: []) ⇒ ProjectedNode
Returns a new instance of ProjectedNode.
10 11 12 13 14 15 |
# File 'lib/archunit/common/projection/projected_node.rb', line 10 def initialize(label:, incoming: [], outgoing: []) label = immutable_label(label) incoming = immutable_edges(incoming, :incoming) outgoing = immutable_edges(outgoing, :outgoing) super end |
Instance Attribute Details
#incoming ⇒ Object (readonly)
Returns the value of attribute incoming
9 10 11 |
# File 'lib/archunit/common/projection/projected_node.rb', line 9 def incoming @incoming end |
#label ⇒ Object (readonly)
Returns the value of attribute label
9 10 11 |
# File 'lib/archunit/common/projection/projected_node.rb', line 9 def label @label end |
#outgoing ⇒ Object (readonly)
Returns the value of attribute outgoing
9 10 11 |
# File 'lib/archunit/common/projection/projected_node.rb', line 9 def outgoing @outgoing end |