I would like to use this gem that normally writes to stdout, but have the output go into a variable. It offers the ability to swap out the file descriptor, but that seems sloppy (if it's even possible). Any thoughts? https://github.com/arches/table_print
if it's even possible to collect the output of a swapped out file descriptor into a variable, is what I meant.
I would like to make a nice thread-safe increment method that takes a class instance or global variable as a parameter.. is there a nice way to do this since you can't pass a reference to the variable?