« blib/lib/XML/Grammar/Screenplay/Base.pm
↑ Summary
blib/lib/XML/Grammar/Screenplay/API/ImageListDoc.pm »
| 1 | package XML::Grammar::Fiction::FromProto::Node::Element; | ||||||||||
| 2 | 19 | $XML::Grammar::Fiction::FromProto::Node::Element::VERSION = '0.22.4'; | |||||||||
| 3 | |||||||||||
| 4 | 19 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 19 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 19 | ▶ | use MooX 'late'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 19 | extends("XML::Grammar::Fiction::FromProto::Node::WithContent"); | |||||||||
| 10 | |||||||||||
| 11 | 19 | has 'name' => ( isa => 'Str', is => 'rw' ); | |||||||||
| 12 | 19 | has 'attrs' => ( isa => 'ArrayRef', is => 'rw' ); | |||||||||
| 13 | 19 | has 'open_line' => ( isa => 'Maybe[Int]', is => 'rw' ); | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | sub lookup_attr | ||||||||||
| 17 | { | ||||||||||
| 18 | 457 | ▶ | my ( $self, $attr_name ) = @_; | ||||||||
|
Subroutine
lookup_attr: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | |||||||||||
| 20 | my $pair = | ||||||||||
| 21 | 457 | ▶ | List::Util::first { $_->{key} eq $attr_name } ( @{ $self->attrs() } ); | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 457 | ▶ | if ( !defined($pair) ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | { | ||||||||||
| 25 | 235 | return; | |||||||||
| 26 | } | ||||||||||
| 27 | else | ||||||||||
| 28 | { | ||||||||||
| 29 | 222 | return $pair->{value}; | |||||||||
| 30 | } | ||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 19 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||
| 36 | |||||||||||
| 37 | =pod | ||||||||||
| 38 | |||||||||||
| 39 | =encoding UTF-8 | ||||||||||
| 40 | |||||||||||
| 41 | =head1 NAME | ||||||||||
| 42 | |||||||||||
| 43 | XML::Grammar::Fiction::FromProto::Node::Element - an XML element node. | ||||||||||
| 44 | |||||||||||
| 45 | =head1 VERSION | ||||||||||
| 46 | |||||||||||
| 47 | version 0.22.4 | ||||||||||
| 48 | |||||||||||
| 49 | =head1 METHODS | ||||||||||
| 50 | |||||||||||
| 51 | =head2 lookup_attr | ||||||||||
| 52 | |||||||||||
| 53 | Internal use. | ||||||||||
| 54 | |||||||||||
| 55 | =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan | ||||||||||
| 56 | |||||||||||
| 57 | =head1 SUPPORT | ||||||||||
| 58 | |||||||||||
| 59 | =head2 Websites | ||||||||||
| 60 | |||||||||||
| 61 | The following websites have more information about this module, and may be of help to you. As always, | ||||||||||
| 62 | in addition to those websites please use your favorite search engine to discover more resources. | ||||||||||
| 63 | |||||||||||
| 64 | =over 4 | ||||||||||
| 65 | |||||||||||
| 66 | =item * | ||||||||||
| 67 | |||||||||||
| 68 | MetaCPAN | ||||||||||
| 69 | |||||||||||
| 70 | A modern, open-source CPAN search engine, useful to view POD in HTML format. | ||||||||||
| 71 | |||||||||||
| 72 | L<https://metacpan.org/release/XML-Grammar-Fiction> | ||||||||||
| 73 | |||||||||||
| 74 | =item * | ||||||||||
| 75 | |||||||||||
| 76 | RT: CPAN's Bug Tracker | ||||||||||
| 77 | |||||||||||
| 78 | The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. | ||||||||||
| 79 | |||||||||||
| 80 | L<https://rt.cpan.org/Public/Dist/Display.html?Name=XML-Grammar-Fiction> | ||||||||||
| 81 | |||||||||||
| 82 | =item * | ||||||||||
| 83 | |||||||||||
| 84 | CPANTS | ||||||||||
| 85 | |||||||||||
| 86 | The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. | ||||||||||
| 87 | |||||||||||
| 88 | L<http://cpants.cpanauthors.org/dist/XML-Grammar-Fiction> | ||||||||||
| 89 | |||||||||||
| 90 | =item * | ||||||||||
| 91 | |||||||||||
| 92 | CPAN Testers | ||||||||||
| 93 | |||||||||||
| 94 | The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. | ||||||||||
| 95 | |||||||||||
| 96 | L<http://www.cpantesters.org/distro/X/XML-Grammar-Fiction> | ||||||||||
| 97 | |||||||||||
| 98 | =item * | ||||||||||
| 99 | |||||||||||
| 100 | CPAN Testers Matrix | ||||||||||
| 101 | |||||||||||
| 102 | The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. | ||||||||||
| 103 | |||||||||||
| 104 | L<http://matrix.cpantesters.org/?dist=XML-Grammar-Fiction> | ||||||||||
| 105 | |||||||||||
| 106 | =item * | ||||||||||
| 107 | |||||||||||
| 108 | CPAN Testers Dependencies | ||||||||||
| 109 | |||||||||||
| 110 | The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. | ||||||||||
| 111 | |||||||||||
| 112 | L<http://deps.cpantesters.org/?module=XML::Grammar::Fiction> | ||||||||||
| 113 | |||||||||||
| 114 | =back | ||||||||||
| 115 | |||||||||||
| 116 | =head2 Bugs / Feature Requests | ||||||||||
| 117 | |||||||||||
| 118 | Please report any bugs or feature requests by email to C<bug-xml-grammar-fiction at rt.cpan.org>, or through | ||||||||||
| 119 | the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=XML-Grammar-Fiction>. You will be automatically notified of any | ||||||||||
| 120 | progress on the request by the system. | ||||||||||
| 121 | |||||||||||
| 122 | =head2 Source Code | ||||||||||
| 123 | |||||||||||
| 124 | The code is open to the world, and available for you to hack on. Please feel free to browse it and play | ||||||||||
| 125 | with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull | ||||||||||
| 126 | from your repository :) | ||||||||||
| 127 | |||||||||||
| 128 | L<https://github.com/shlomif/fiction-xml> | ||||||||||
| 129 | |||||||||||
| 130 | git clone git://github.com/shlomif/fiction-xml.git | ||||||||||
| 131 | |||||||||||
| 132 | =head1 AUTHOR | ||||||||||
| 133 | |||||||||||
| 134 | Shlomi Fish <shlomif@cpan.org> | ||||||||||
| 135 | |||||||||||
| 136 | =head1 BUGS | ||||||||||
| 137 | |||||||||||
| 138 | Please report any bugs or feature requests on the bugtracker website | ||||||||||
| 139 | L<https://github.com/shlomif/fiction-xml/issues> | ||||||||||
| 140 | |||||||||||
| 141 | When submitting a bug or request, please include a test-file or a | ||||||||||
| 142 | patch to an existing test-file that illustrates the bug or desired | ||||||||||
| 143 | feature. | ||||||||||
| 144 | |||||||||||
| 145 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 146 | |||||||||||
| 147 | This software is Copyright (c) 2007 by Shlomi Fish. | ||||||||||
| 148 | |||||||||||
| 149 | This is free software, licensed under: | ||||||||||
| 150 | |||||||||||
| 151 | The MIT (X11) License | ||||||||||
| 152 | |||||||||||
| 153 | =cut | ||||||||||