Class: VisualizePackwerk::TeamNode

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
NodeInterface
Defined in:
lib/visualize_packwerk/team_node.rb

Instance Method Summary collapse

Methods included from NodeInterface

#dependencies, #name

Instance Method Details

#depends_on?(node_name) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/visualize_packwerk/team_node.rb', line 23

def depends_on?(node_name)
  dependencies.include?(node_name) || (violations_by_node_name[node_name] || 0) > 0
end

#group_nameObject



18
19
20
# File 'lib/visualize_packwerk/team_node.rb', line 18

def group_name
  name
end

#violations_by_node_nameObject



13
14
15
# File 'lib/visualize_packwerk/team_node.rb', line 13

def violations_by_node_name
  violations_by_team
end