Class: FatTable::OrgFormatter
- Defined in:
- lib/fat_table/formatters/org_formatter.rb
Overview
Output the table in the same way as org-mode for emacs does. This is almost identical to TextFormatter except that dates do get formatted as inactive timestamps and the connector at the beginning of hlines is a '|' rather than a '+' as for text tables.
Constant Summary
Constants inherited from Formatter
Instance Attribute Summary
Attributes inherited from Formatter
#footers, #format_at, #gfooters, #options, #table
Class Method Summary collapse
Methods inherited from Formatter
#avg_footer, #avg_gfooter, #decorate_string, #foot, #footer, #format, #format_cell, #format_for, #gfoot, #gfooter, #initialize, #max_footer, #max_gfooter, #min_footer, #min_gfooter, #output, #sum_footer, #sum_gfooter
Constructor Details
This class inherits a constructor from FatTable::Formatter
Class Method Details
.default_format ⇒ Object
9 10 11 12 13 14 |
# File 'lib/fat_table/formatters/org_formatter.rb', line 9 def self.default_format fmt = super fmt[:date_fmt] = '[%F %a]' fmt[:datetime_fmt] = '[%F %a %H:%M:%S]' fmt end |