-
-
Save anonymous/3105b3693c50604fdd8f to your computer and use it in GitHub Desktop.
beautify rub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thufir@dur:~/ruby$ | |
thufir@dur:~/ruby$ cat mail.rb | |
require 'yaml' | |
require 'net/imap' | |
require 'mail' | |
2.times do | |
puts 'hello world' | |
end | |
thufir@dur:~/ruby$ | |
thufir@dur:~/ruby$ ruby rbeautify.rb mail.rb | |
rbeautify.rb:118: warning: character class has duplicated range: /.*=\s*<<-?\s*([_|\w]+).*/ | |
rbeautify.rb:90:in `beautify_string': undefined method `each' for #<String:0x9214d38> (NoMethodError) | |
from rbeautify.rb:194:in `beautify_file' | |
from rbeautify.rb:212:in `block in main' | |
from rbeautify.rb:211:in `each' | |
from rbeautify.rb:211:in `main' | |
from rbeautify.rb:221:in `<main>' | |
thufir@dur:~/ruby$ | |
thufir@dur:~/ruby$ cat mail.rb | |
require 'yaml' | |
require 'net/imap' | |
require 'mail' | |
2.times do | |
puts 'hello world' | |
end | |
thufir@dur:~/ruby$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment