Sha256: 2ca19f253bdf6135e24e135ecb5cba420dcb35ba82c21dc7d3979b9107f26605
Contents?: true
Size: 281 Bytes
Versions: 15
Compression:
Stored size: 281 Bytes
Contents
#!/usr/bin/env ruby require 'to_source' ARGV.each do |path| source = File.read(path) ast = source.to_ast next if ast.nil? # When file only has comments $stderr.puts(path) begin $stdout.puts(ToSource.to_source(ast)) rescue ast.ascii_graph raise end end
Version data entries
15 entries across 15 versions & 1 rubygems