Sha256: 0c078d4d62db69dedf25d8db8094a4c6c835ab4a1bdf55106256b1635250ae7f
Contents?: true
Size: 254 Bytes
Versions: 49
Compression:
Stored size: 254 Bytes
Contents
#!/usr/bin/ruby system "crystal tool format functions.cr" a = File.read("functions.cr") $stdout = File.open "functions.cr", 'w' a.each_line do |l| l.chomp! print l if l.match /^\s*def .+[a-zA-Z]{2}$/ print "()" end puts end $stdout.flush $stdout.close
Version data entries
49 entries across 49 versions & 6 rubygems