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
class Hash | |
def to_html | |
[ | |
'<ul>', | |
map { |k, v| ["<li><strong>#{k}</strong>", v.respond_to?(:to_html) ? v.to_html : "<span>#{v}</span></li>"] }, | |
'</ul>' | |
].join | |
end | |
end |
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
#!/usr/local/bin/ruby | |
# Mail script for sending stuff from the command line through entourage | |
# which makes life super easy for sending files, or piping files to a mail body, etc. | |
# | |
# email -t bosses -c tracker -a ~/report.csv <SUBJECT HERE> | |
# | |
# Author:: Rob Hurring | |
# Date:: 2011-11-15 | |
# Version:: 1.0a |