Skip to content

Instantly share code, notes, and snippets.

/beautify.rb Secret

Created December 23, 2012 20:00
Show Gist options
  • Save anonymous/3105b3693c50604fdd8f to your computer and use it in GitHub Desktop.
Save anonymous/3105b3693c50604fdd8f to your computer and use it in GitHub Desktop.
beautify rub
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