NAME

Table::Simple::Column - A collection of data points organized into rows

DESCRIPTION

Typically you want to use this module in conjunction with Table::Simple table object.

ATTRIBUTES

  • width

    This attribute stores the length of the widest element in the column including the name of the column.

  • name

    This is a required attribute which stores the name of the column. It should match the name of an attribute on a class to be scanned by the software.

  • output_format

    This attribute controls the output layout. This should match a method in Table::Simple::Output or a subclass of that. The following methods are available in the standard Table::Simple::Output class:

    • left_justify

    • center

    • right_justify

  • rows

    This attribute is a collection of data elements corresponding to the attribute values matching the column name.

    This attribute has a number of methods which permit you to manipulate the collection.

METHODS

  • add_row( $string )

    This method adds a new row value (string scalar) to the collection.

  • get_rows

    This method returns all values stored in the collection. It preserves the order in which values were added to the collection.

  • get_row

    This method returns a specific value stored in collection. It takes the desired value's index as input and returns the value as output.

LICENSE

This is free software. You may modify and/or redistribute it under the same terms as Perl itself.

AUTHOR

Mark Allen <mrallen1@yahoo.com>

SEE ALSO

Moose, Table::Simple, Table::Simple::Output