Class: VisualizePackwerk::PackageNode
- Inherits:
-
T::Struct
- Object
- T::Struct
- VisualizePackwerk::PackageNode
- Extended by:
- T::Sig
- Includes:
- NodeInterface
- Defined in:
- lib/visualize_packwerk/package_node.rb
Instance Method Summary collapse
Methods included from NodeInterface
Instance Method Details
#depends_on?(node_name) ⇒ Boolean
24 25 26 |
# File 'lib/visualize_packwerk/package_node.rb', line 24 def depends_on?(node_name) dependencies.include?(node_name) || (violations_by_package[node_name] || 0) > 0 end |
#group_name ⇒ Object
19 20 21 |
# File 'lib/visualize_packwerk/package_node.rb', line 19 def group_name team_name end |
#violations_by_node_name ⇒ Object
14 15 16 |
# File 'lib/visualize_packwerk/package_node.rb', line 14 def violations_by_node_name violations_by_package end |