# File lib/kwala/actions/cycle_detection.rb, line 100 def print_graph(graph) graph_ml = CycleDetector::GraphMLPrintStrategy.new begin oldstd = $stdout $stdout = StringIO.new graph_ml.print_graph(graph) gxml = $stdout.string ensure $stdout = oldstd end # now dump that into the out dir File.open(@output_directory + "/require_graph.xml", "w") { |f| f.puts gxml } end