« blib/lib/XML/Grammar/Fiction/FromProto/Node/Element.pm
↑ Summary
blib/lib/XML/Grammar/Fiction/Struct/Tag.pm »
| 1 | package XML::Grammar::Screenplay::API::ImageListDoc; | ||
| 2 | 4 | $XML::Grammar::Screenplay::API::ImageListDoc::VERSION = '0.22.0'; | |
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | ▶ | use MooX 'late'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 4 | ▶ | use XML::Grammar::Screenplay::FromProto::Parser::QnD (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 4 | extends('XML::Grammar::Screenplay::FromProto'); | |
| 11 | |||
| 12 | 4 | has ['_dom'] => ( is => 'rw' ); | |
| 13 | 4 | has ['_xml'] => ( is => 'rw' ); | |
| 14 | |||
| 15 | sub list_images | ||
| 16 | { | ||
| 17 | 2 | ▶ | my ($self) = @_; |
|
Subroutine
list_images: called CC=2 SCAR=6.9
Pod
documented
| |||
| 18 | 2 | my %found; | |
| 19 | |||
| 20 | 2 | my $xpc = XML::LibXML::XPathContext->new(); | |
| 21 | 2 | $xpc->registerNs( 's', | |
| 22 | q{http://web-cpan.berlios.de/modules/XML-Grammar-Screenplay/screenplay-xml-0.2/} | ||
| 23 | ); | ||
| 24 | 2 | foreach | |
| 25 | my $img ( $xpc->find( q{//s:image}, $self->_dom() )->get_nodelist() ) | ||
| 26 | { | ||
| 27 | 6 | ++$found{ $img->getAttribute('url') }; | |
| 28 | } | ||
| 29 | |||
| 30 | return [ | ||
| 31 | map { | ||
| 32 | 2 | XML::Grammar::Screenplay::API::ImageListDoc::_Record->new( | |
| 33 | { | ||
| 34 | _uri => $_, | ||
| 35 | } | ||
| 36 | ) | ||
| 37 | } | ||
| 38 | sort keys(%found) | ||
| 39 | ]; | ||
| 40 | } | ||
| 41 | |||
| 42 | 4 | 1; | |
| 43 | |||
| 44 | package XML::Grammar::Screenplay::API::ImageListDoc::_Record; | ||
| 45 | 4 | $XML::Grammar::Screenplay::API::ImageListDoc::_Record::VERSION = '0.22.0'; | |
| 46 | 4 | ▶ | use MooX 'late'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 47 | |||
| 48 | 4 | has '_uri' => ( is => 'ro' ); | |
| 49 | |||
| 50 | sub uri | ||
| 51 | { | ||
| 52 | 6 | ▶ | my ( $self, ) = @_; |
|
Subroutine
uri: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 53 | |||
| 54 | 6 | return $self->_uri(); | |
| 55 | } | ||
| 56 | |||
| 57 | 4 | 1; | |
| 58 | |||
| 59 | # __END__ | ||
| 60 | # # Below is stub documentation for your module. You'd better edit it! | ||
| 61 | |||
| 62 | __END__ | ||
| 63 | |||
| 64 | =pod | ||
| 65 | |||
| 66 | =encoding UTF-8 | ||
| 67 | |||
| 68 | =head1 NAME | ||
| 69 | |||
| 70 | =head1 VERSION | ||
| 71 | |||
| 72 | version 0.22.0 | ||
| 73 | |||
| 74 | =head1 SYNOPSIS | ||
| 75 | |||
| 76 | =head1 DESCRIPTION | ||
| 77 | |||
| 78 | =head1 METHODS | ||
| 79 | |||
| 80 | =head2 my $aref = $self->list_images() | ||
| 81 | |||
| 82 | =head2 | ||
| 83 | |||
| 84 | =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan | ||
| 85 | |||
| 86 | =head1 SUPPORT | ||
| 87 | |||
| 88 | =head2 Websites | ||
| 89 | |||
| 90 | The following websites have more information about this module, and may be of help to you. As always, | ||
| 91 | in addition to those websites please use your favorite search engine to discover more resources. | ||
| 92 | |||
| 93 | =over 4 | ||
| 94 | |||
| 95 | =item * | ||
| 96 | |||
| 97 | MetaCPAN | ||
| 98 | |||
| 99 | A modern, open-source CPAN search engine, useful to view POD in HTML format. | ||
| 100 | |||
| 101 | L<https://metacpan.org/release/XML-Grammar-Fiction> | ||
| 102 | |||
| 103 | =item * | ||
| 104 | |||
| 105 | RT: CPAN's Bug Tracker | ||
| 106 | |||
| 107 | The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. | ||
| 108 | |||
| 109 | L<https://rt.cpan.org/Public/Dist/Display.html?Name=XML-Grammar-Fiction> | ||
| 110 | |||
| 111 | =item * | ||
| 112 | |||
| 113 | CPANTS | ||
| 114 | |||
| 115 | The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. | ||
| 116 | |||
| 117 | L<http://cpants.cpanauthors.org/dist/XML-Grammar-Fiction> | ||
| 118 | |||
| 119 | =item * | ||
| 120 | |||
| 121 | CPAN Testers | ||
| 122 | |||
| 123 | The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. | ||
| 124 | |||
| 125 | L<http://www.cpantesters.org/distro/X/XML-Grammar-Fiction> | ||
| 126 | |||
| 127 | =item * | ||
| 128 | |||
| 129 | CPAN Testers Matrix | ||
| 130 | |||
| 131 | The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. | ||
| 132 | |||
| 133 | L<http://matrix.cpantesters.org/?dist=XML-Grammar-Fiction> | ||
| 134 | |||
| 135 | =item * | ||
| 136 | |||
| 137 | CPAN Testers Dependencies | ||
| 138 | |||
| 139 | The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. | ||
| 140 | |||
| 141 | L<http://deps.cpantesters.org/?module=XML::Grammar::Fiction> | ||
| 142 | |||
| 143 | =back | ||
| 144 | |||
| 145 | =head2 Bugs / Feature Requests | ||
| 146 | |||
| 147 | Please report any bugs or feature requests by email to C<bug-xml-grammar-fiction at rt.cpan.org>, or through | ||
| 148 | the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=XML-Grammar-Fiction>. You will be automatically notified of any | ||
| 149 | progress on the request by the system. | ||
| 150 | |||
| 151 | =head2 Source Code | ||
| 152 | |||
| 153 | The code is open to the world, and available for you to hack on. Please feel free to browse it and play | ||
| 154 | with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull | ||
| 155 | from your repository :) | ||
| 156 | |||
| 157 | L<https://github.com/shlomif/fiction-xml> | ||
| 158 | |||
| 159 | git clone git://github.com/shlomif/fiction-xml.git | ||
| 160 | |||
| 161 | =head1 AUTHOR | ||
| 162 | |||
| 163 | Shlomi Fish <shlomif@cpan.org> | ||
| 164 | |||
| 165 | =head1 BUGS | ||
| 166 | |||
| 167 | Please report any bugs or feature requests on the bugtracker website | ||
| 168 | L<https://github.com/shlomif/fiction-xml/issues> | ||
| 169 | |||
| 170 | When submitting a bug or request, please include a test-file or a | ||
| 171 | patch to an existing test-file that illustrates the bug or desired | ||
| 172 | feature. | ||
| 173 | |||
| 174 | =head1 COPYRIGHT AND LICENSE | ||
| 175 | |||
| 176 | This software is Copyright (c) 2007 by Shlomi Fish. | ||
| 177 | |||
| 178 | This is free software, licensed under: | ||
| 179 | |||
| 180 | The MIT (X11) License | ||
| 181 | |||
| 182 | =cut | ||