Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Pretty tables in text formatters?...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stu  
View profile  
 More options Aug 4, 5:50 pm
From: Stu <stuart.hungerf...@gmail.com>
Date: Tue, 4 Aug 2009 14:50:41 -0700 (PDT)
Local: Tues, Aug 4 2009 5:50 pm
Subject: Pretty tables in text formatters?...
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google