# File lib/pickle/email.rb, line 42 def save_and_open_emails emails_to_open = @emails || emails filename = "pickle-email-#{Time.now.to_i}.html" File.open(filename, "w") do |f| emails_to_open.each_with_index do |e, i| f.write "<h1>Email #{i+1}</h1><pre>#{e}</pre><hr />" end end open_in_browser(filename) end