Subject: | Problem with as_image() and skip() method |
Hi,
After adding as_image() Map::Tube requires skip() method in each Map::Tube::* class.
Do you add default skip() method with "return {};", please?
think:~/perl/MODULES/Map-Tube-Prague> cat ex12.pl
#!/usr/bin/env perl
# Pragmas.
use strict;
use warnings;
# Modules.
use IO::Barf qw(barf);
use MIME::Base64 qw(decode_base64);
use Map::Tube::Prague;
# Arguments.
if (@ARGV < 1) {
print STDERR "Usage: $0 line\n";
exit 1;
}
my $line = $ARGV[0];
# Object.
my $metro = Map::Tube::Prague->new;
# Get tables.
barf('ex12.png', decode_base64($metro->as_image($line)));
think:~/perl/MODULES/Map-Tube-Prague> ./ex12.pl 'Linka A'
Can't locate object method "skip" via package "Map::Tube::Prague" at /usr/local/share/perl/5.14.2/Map/Tube/Plugin/Graph.pm line 135.
Kind regards,
M.