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

Version Path
ufos-1.0.94 ./src/src/format_so_it_works
aliens-1.0.94 ./src/src/format_so_it_works
freespeech-1.0.94 ./src/src/format_so_it_works
elonmusk-1.0.94 ./src/src/format_so_it_works
politics-1.0.94 ./src/src/format_so_it_works
democracy-1.0.94 ./src/src/format_so_it_works
democracy-1.0.93 ./src/src/format_so_it_works
ufos-1.0.91 ./src/src/format_so_it_works
aliens-1.0.91 ./src/src/format_so_it_works
freespeech-1.0.91 ./src/src/format_so_it_works
elonmusk-1.0.91 ./src/src/format_so_it_works
politics-1.0.91 ./src/src/format_so_it_works
politics-1.0.89 ./src/src/format_so_it_works
ufos-1.0.87 ./src/src/format_so_it_works
aliens-1.0.87 ./src/src/format_so_it_works
freespeech-1.0.87 ./src/src/format_so_it_works
elonmusk-1.0.87 ./src/src/format_so_it_works
politics-1.0.87 ./src/src/format_so_it_works
ufos-1.0.88 ./src/src/format_so_it_works
aliens-1.0.88 ./src/src/format_so_it_works