line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
1478
|
use feature ':5.16'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
136
|
|
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
82
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.2300'; # VERSION |
6
|
|
|
|
|
|
|
# PODCLASSNAME |
7
|
|
|
|
|
|
|
# ABSTRACT: Prints stations as they are parsed |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Map::Metro::Plugin::Hook::StreamStations { |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
6
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
12
|
1
|
|
|
1
|
|
7135
|
use Types::Standard -types; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has station_names => ( |
15
|
|
|
|
|
|
|
is => 'rw', |
16
|
|
|
|
|
|
|
isa => ArrayRef, |
17
|
|
|
|
|
|
|
traits => ['Array'], |
18
|
|
|
|
|
|
|
handles => { |
19
|
|
|
|
|
|
|
add_station_name => 'push', |
20
|
|
|
|
|
|
|
all_station_names => 'elements', |
21
|
|
|
|
|
|
|
get_station_name => 'get', |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub register { |
26
|
|
|
|
|
|
|
before_add_station => sub { |
27
|
0
|
|
|
0
|
|
|
my $self = shift; |
28
|
0
|
|
|
|
|
|
my $station = shift; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
say $station->name; |
31
|
0
|
|
|
|
|
|
$self->add_station_name($station->name); |
32
|
0
|
|
|
0
|
0
|
|
}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=pod |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=encoding UTF-8 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Map::Metro::Plugin::Hook::StreamStations - Prints stations as they are parsed |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 VERSION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Version 0.2300, released 2016-01-14. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SOURCE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
L<https://github.com/Csson/p5-Map-Metro> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 HOMEPAGE |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
L<https://metacpan.org/release/Map-Metro> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHOR |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Erik Carlsson <info@code301.com> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This software is copyright (c) 2016 by Erik Carlsson. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
69
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |