I have a script that writes colored output to the terminal via a custom module like here: Colorized Ruby output
I would like to also save this output to a file in color similar to how aha
works here: A library to convert ANSI escapes (terminal formatting/color codes) to HTML
How can I use Ruby to both output to the terminal in color and save to a file in color in html or some other markup that's easily read by non-developers.