<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Map::Tube::Text::Table - Table output for Map::Tube.

SYNOPSIS
     use Map::Tube::Text::Table;
     my $obj = Map::Tube::Text::Table-&gt;new(%params);
     my $text = $obj-&gt;junctions;
     my $text = $obj-&gt;line($line);
     my $text = $obj-&gt;print;

METHODS
    "new(%params)"
             Constructor.

            *       "tube"

                     Map::Tube object.
                     It is required.
                     Default value is undef.

    "junctions()"
             Print junctions.
             Returns string with unicode text table.

    "line($line)"
             Print line.
             Returns string with unicode text table.

    "print()"
             Print all (junctions + all lines).
             Returns string with unicode text table.

ERRORS
     new():
             Parameter 'tube' is required.
             Parameter 'tube' must be 'Map::Tube' object.
             From Class::Utils::set_params():
                     Unknown parameter '%s'.

EXAMPLE
     # Pragmas.
     use strict;
     use warnings;

     # Modules.
     use Encode qw(encode_utf8);
     use English;
     use Error::Pure qw(err);
     use Map::Tube::Text::Table;

     # Error::Pure environment.
     $ENV{'ERROR_PURE'} = 'AllError';

     # Arguments.
     if (@ARGV &lt; 1) {
             print STDERR "Usage: $0 metro\n";
             exit 1;
     }
     my $metro = $ARGV[0];
 
     # Object.
     my $class = 'Map::Tube::'.$metro;
     eval "require $class;";
     if ($EVAL_ERROR) {
             err "Cannot load '$class' class.",
                     'Error', $EVAL_ERROR;
     }
 
     # Metro object.
     my $tube = eval "$class-&gt;new";
     if ($EVAL_ERROR) {
             err "Cannot create object for '$class' class.",
                     'Error', $EVAL_ERROR;
     }
 
     # GraphViz object.
     my $table = Map::Tube::Text::Table-&gt;new(
             'tube' =&gt; $tube,
     );
 
     # Print out.
     print encode_utf8($table-&gt;print);

     # Output without arguments like:
     # Usage: /tmp/SZXfa2g154 metro

     # Output with 'Tbilisi' argument like:
     # ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
     # â Junctions                                                                                        â
     # ââââââââââââââââââââŹâââââââââââââââââââââââââââââââââââââââââââŹâââââââââââââââââââââââââââââââââââââ¤
     # â Station          â Line                                     â Connected to                       â
     # ââââââââââââââââââââźâââââââââââââââââââââââââââââââââââââââââââźâââââââââââââââââââââââââââââââââââââ¤
     # â áĄááááŁá&nbsp;ááĄ ááááááá â ááŽááá˘ááá-ááá&nbsp;áááááááĄ áŽááá,áĄáááŁá&nbsp;áááááĄ áŽááá â ááá&nbsp;áŻáááá¨áááá, áááŤááááááá, áŹáá&nbsp;ááááá â
     # ââââââââââââââââââââ´âââââââââââââââââââââââââââââââââââââââââââ´âââââââââââââââââââââââââââââââââââââ
     # âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
     # â Line 'ááŽááá˘ááá-ááá&nbsp;áááááááĄ áŽááá'                           â
     # ââââââââââââââââââââââââŹâââââââââââââââââââââââââââââââââââââ¤
     # â Station              â Connected to                       â
     # ââââââââââââââââââââââââźâââââââââââââââââââââââââââââââââââââ¤
     # â ááŽááá˘ááááĄ áááá˘á&nbsp;á     â áĄáá&nbsp;ááŻáá¨áááá                        â
     # â áĄáá&nbsp;ááŻáá¨áááá          â ááŽááá˘ááááĄ áááá˘á&nbsp;á, ááŁá&nbsp;áááá¨áááá      â
     # â ááŁá&nbsp;áááá¨áááá          â áĄáá&nbsp;ááŻáá¨áááá, áŚá&nbsp;áááŚááá              â
     # â áŚá&nbsp;áááŚááá             â ááŁá&nbsp;áááá¨áááá, ááááŁáá                â
     # â ááááŁáá               â áááŞáá&nbsp;ááŤá, áŚá&nbsp;áááŚááá                 â
     # â áááŞáá&nbsp;ááŤá             â ááááŁáá, áááŤááááááá                 â
     # â áááŤááááááá           â áááŞáá&nbsp;ááŤá, áĄááááŁá&nbsp;ááĄ ááááááá         â
     # â ááá&nbsp;áŻáááá¨áááá         â á&nbsp;áŁáĄáááááá, áĄááááŁá&nbsp;ááĄ ááááááá        â
     # â á&nbsp;áŁáĄáááááá            â áááááĄáŁá¤áááááĄ ááááááá, ááá&nbsp;áŻáááá¨áááá â
     # â áááááĄáŁá¤áááááĄ ááááááá â ááááááá&nbsp;á, á&nbsp;áŁáĄáááááá                â
     # â ááááááá&nbsp;á             â 300 áá&nbsp;áááááá, áááááĄáŁá¤áááááĄ ááááááá â
     # â 300 áá&nbsp;áááááá         â ááááááá&nbsp;á, ááĄááá                    â
     # â ááĄááá                â 300 áá&nbsp;áááááá, áĄááááá&nbsp;á              â
     # â áĄááááá&nbsp;á              â ááá&nbsp;áááááá, ááĄááá                   â
     # â ááá&nbsp;áááááá            â áĄááááá&nbsp;á                            â
     # â áĄááááŁá&nbsp;ááĄ ááááááá     â ááá&nbsp;áŻáááá¨áááá, áááŤááááááá, áŹáá&nbsp;ááááá â
     # ââââââââââââââââââââââââ´âââââââââââââââââââââââââââââââââââââ
     # ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
     # â Line 'áĄáááŁá&nbsp;áááááĄ áŽááá'                                             â
     # âââââââââââââââââââââââââââŹâââââââââââââââââââââââââââââââââââââââââââ¤
     # â Station                 â Connected to                             â
     # âââââââââââââââââââââââââââźâââââââââââââââââââââââââââââââââââââââââââ¤
     # â áŹáá&nbsp;ááááá                â áĄááááŁá&nbsp;ááĄ ááááááá, á˘ááĽááááŁá&nbsp;á áŁááááá&nbsp;áĄáá˘áá˘á â
     # â á˘ááĽááááŁá&nbsp;á áŁááááá&nbsp;áĄáá˘áá˘á  â áĄááááááŞááá áŁááááá&nbsp;áĄáá˘áá˘á, áŹáá&nbsp;ááááá        â
     # â áĄááááááŞááá áŁááááá&nbsp;áĄáá˘áá˘á â áááááĄá, á˘ááĽááááŁá&nbsp;á áŁááááá&nbsp;áĄáá˘áá˘á           â
     # â áááááĄá                  â áááá-á¤á¨ááááá, áĄááááááŞááá áŁááááá&nbsp;áĄáá˘áá˘á    â
     # â áááá-á¤á¨ááááá            â áááááĄá                                   â
     # â áĄááááŁá&nbsp;ááĄ ááááááá        â ááá&nbsp;áŻáááá¨áááá, áááŤááááááá, áŹáá&nbsp;ááááá       â
     # âââââââââââââââââââââââââââ´âââââââââââââââââââââââââââââââââââââââââââ

DEPENDENCIES
    Class::Utils, Error::Pure, Map::Tube::Text::Table::Utils, Readonly,
    Scalar::Util.

SEE ALSO
    Map::Tube, Map::Tube::GraphViz.

REPOSITORY
    &lt;https://github.com/tupinek/Map-Tube-Text-Table&gt;

AUTHOR
    Michal Ĺ&nbsp;paÄek &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
     ÂŠ 2014 Michal Ĺ&nbsp;paÄek
     Artistic License
     BSD 2-Clause License

VERSION
    0.01

</pre></body></html>