Data::Timeline::Formatter::SimpleTable - Print time line entry types side-by-side in a text table


Data-Timeline documentation  | view source Contained in the Data-Timeline distribution.

Index


NAME

Top

Data::Timeline::Formatter::SimpleTable - Print time line entry types side-by-side in a text table

VERSION

Top

version 1.100860

SYNOPSIS

Top

    Data::Timeline::Formatter::SimpleTable->new(
        columns => [ [ 40, 'iscrobbler' ], [ 40, 'svk' ] ],
    )->format($timeline);

DESCRIPTION

Top

This class is a time line formatter. It takes a time line containing entries of one or more entry types and a column definition. The column definition says for each column how wide it should be and which type of entries it should contain. The formatter's format() method will then print a simple text table containing the requested columns, with a column for the timestamp at the beginning.

The column definition is a list of [ $width, $type ] pairs. So for the example in the synopsis, the first column would contain the timestamp, the second column would be 40 characters wide and contain iscrobbler entries, produced by Data::Timeline::IScrobbler, and the third column would also be 40 characters wide and contain svk entries, produced by Data::Timeline::SVK.

METHODS

Top

format

FIXME

INSTALLATION

Top

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Timeline.

AVAILABILITY

Top

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Data-Timeline/.

The development version lives at http://github.com/hanekomu/Data-Timeline/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHOR

Top

  Marcel Gruenauer <marcel@cpan.org>

COPYRIGHT AND LICENSE

Top


Data-Timeline documentation  | view source Contained in the Data-Timeline distribution.