I can't remember if there is a canonical way to do it but a couple of
ideas spring to mind. A Group is a subclass of Table so you could just
iterate over the Grouping and add the total figure as a new row to the
end. It's probably better to iterate over each Group in your formatter
and output the total separately so you can control the display of it
precisely.
> Also, any insights on how to format a specific column to display as
> currency?
This is also technically a display issue where the logic belongs in the
Formatter. You can override individual row output to display as you like
or use Table#change_column to modify the values in place.
Hope that helps. If you have small specific example code you are stuck
with feel free to post that here.
Regards,
Andrew
--
Avito Ltd
Currently in Cambridge, UK (BST)
-------------------
Reg office: 23 Hoadly Road, Cambridge, CB3 0HX.
Company 05946211 registered in England.
-------------------
--
You received this message because you are subscribed to the Google Groups "Ruby Reports" group.
To post to this group, send email to ruby-r...@googlegroups.com.
To unsubscribe from this group, send email to ruby-reports+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-reports?hl=en.