Class: Kumi::Core::Analyzer::Passes::DependencyResolver::DependencyEdge
- Inherits:
-
Object
- Object
- Kumi::Core::Analyzer::Passes::DependencyResolver::DependencyEdge
- Defined in:
- lib/kumi/core/analyzer/passes/dependency_resolver.rb
Overview
Enhanced edge with conditional flag and cascade metadata
Instance Attribute Summary collapse
-
#cascade_owner ⇒ Object
readonly
Returns the value of attribute cascade_owner.
-
#conditional ⇒ Object
readonly
Returns the value of attribute conditional.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#via ⇒ Object
readonly
Returns the value of attribute via.
Instance Method Summary collapse
-
#initialize(to:, type:, via:, conditional: false, cascade_owner: nil) ⇒ DependencyEdge
constructor
A new instance of DependencyEdge.
Constructor Details
#initialize(to:, type:, via:, conditional: false, cascade_owner: nil) ⇒ DependencyEdge
Returns a new instance of DependencyEdge.
16 17 18 19 20 21 22 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 16 def initialize(to:, type:, via:, conditional: false, cascade_owner: nil) @to = to @type = type @via = via @conditional = conditional @cascade_owner = cascade_owner end |
Instance Attribute Details
#cascade_owner ⇒ Object (readonly)
Returns the value of attribute cascade_owner.
14 15 16 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 14 def cascade_owner @cascade_owner end |
#conditional ⇒ Object (readonly)
Returns the value of attribute conditional.
14 15 16 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 14 def conditional @conditional end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
14 15 16 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 14 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
14 15 16 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 14 def type @type end |
#via ⇒ Object (readonly)
Returns the value of attribute via.
14 15 16 |
# File 'lib/kumi/core/analyzer/passes/dependency_resolver.rb', line 14 def via @via end |