Hi,
For a series of reports I'm creating I'm using a separate report
controller, Report class and formatter for the report stages derived
from Ruport::Formatter::Text. The source of the report data is
ActiveRecord and AAR, but all this is used outside of Rails.
Some of the formatter stages need to write descriptive text and a few
statistics to output, but in other stages I'd like to have a default
"pretty" text table generated, something like "output << mytable.to_s"
in the stage. All the examples I've seen do this by manually sending
the table to output row-by-row etc.
Is it possible to mix stage formatting with pretty table output this
way? Even better if I could indent the whole table as well, but I can
get by without that.
Any advice much appreciated,
Stu