Class: CycleDetector::STDOUTPrintStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/kwala/lib/cycle_detector.rb

Instance Method Summary collapse

Instance Method Details



244
245
246
247
248
249
250
251
# File 'lib/kwala/lib/cycle_detector.rb', line 244

def print_cycles(cycles)
  if cycles.size > 0
    puts "Directory has #{cycles.size} CYCLES !"
    cycles.each do |path|
      print_cycle_path(path)
    end
  end
end


236
237
238
239
240
241
242
# File 'lib/kwala/lib/cycle_detector.rb', line 236

def print_graph(graph)
  puts "Graph is #{ graph.size}"

  graph.each do |k, v|
    print_node(v)
  end
end