Skip Menu |

This queue is for tickets about the Map-Tube CPAN distribution.

Report information
The Basics
Id: 101691
Status: resolved
Priority: 0/
Queue: Map-Tube

People
Owner: MANWAR [...] cpan.org
Requestors: SKIM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.64
Fixed in: 2.75



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.
btw: Name of method as_image(), which created LINE graph isn't good. :-) M.
Hi, Thanks for reporting the issue. However the issue is related to Map::Tube::Plugin::Graph and not Map::Tube. Anyway I have patched and pushed the code Map::Tube::Plugin::Graph v0.08 to GitHub as below: https://github.com/Manwar/Map-Tube-Plugin-Graph/commit/600849d863c7dff0908a703e32fb5db407bebd1d Best Regards, Mohammad S Anwar
Dne Pá 23.led.2015 05:25:52, MANWAR napsal(a): Hi, Show quoted text
> Thanks for reporting the issue. However the issue is related to > Map::Tube::Plugin::Graph and not Map::Tube. Anyway I have patched and > pushed the code Map::Tube::Plugin::Graph v0.08 to GitHub as below:
Ok, you are right. Thanks :-) Kind regards, M.
Resolved.