| 1 | package PPI::Statement::End; | ||
| 2 | |||
| 3 | =pod | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | PPI::Statement::End - Content after the __END__ of a module | ||
| 8 | |||
| 9 | =head1 SYNOPSIS | ||
| 10 | |||
| 11 | # This is normal content | ||
| 12 | |||
| 13 | __END__ | ||
| 14 | |||
| 15 | This is part of a PPI::Statement::End statement | ||
| 16 | |||
| 17 | =pod | ||
| 18 | |||
| 19 | This is not part of the ::End statement, it's POD | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | This is another PPI::Statement::End statement | ||
| 24 | |||
| 25 | =head1 INHERITANCE | ||
| 26 | |||
| 27 | PPI::Statement::End | ||
| 28 | isa PPI::Statement | ||
| 29 | isa PPI::Node | ||
| 30 | isa PPI::Element | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | C<PPI::Statement::End> is a utility class designed to serve as a contained | ||
| 35 | for all of the content after the __END__ tag in a file. | ||
| 36 | |||
| 37 | It doesn't cover the ENTIRE of the __END__ section, and can be interspersed | ||
| 38 | with L<PPI::Token::Pod> tokens. | ||
| 39 | |||
| 40 | =head1 METHODS | ||
| 41 | |||
| 42 | C<PPI::Statement::End> has no additional methods beyond the default ones | ||
| 43 | provided by L<PPI::Statement>, L<PPI::Node> and L<PPI::Element>. | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | 62 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | 62 | ▶ | use PPI::Statement (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 49 | |||
| 50 | 62 | ▶ | use vars qw{$VERSION @ISA}; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 51 | BEGIN { | ||
| 52 | 62 | ▶ | $VERSION = '1.236'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 53 | 62 | @ISA = 'PPI::Statement'; | |
| 54 | } | ||
| 55 | |||
| 56 | # Once we have an __END__ we're done | ||
| 57 | sub _complete () { 1 } | ||
| 58 | |||
| 59 | 62 | 1; | |
| 60 | |||
| 61 | =pod | ||
| 62 | |||
| 63 | =head1 SUPPORT | ||
| 64 | |||
| 65 | See the L<support section|PPI/SUPPORT> in the main module. | ||
| 66 | |||
| 67 | =head1 AUTHOR | ||
| 68 | |||
| 69 | Adam Kennedy E<lt>adamk@cpan.orgE<gt> | ||
| 70 | |||
| 71 | =head1 COPYRIGHT | ||
| 72 | |||
| 73 | Copyright 2001 - 2011 Adam Kennedy. | ||
| 74 | |||
| 75 | This program is free software; you can redistribute | ||
| 76 | it and/or modify it under the same terms as Perl itself. | ||
| 77 | |||
| 78 | The full text of the license can be found in the | ||
| 79 | LICENSE file included with this module. | ||
| 80 | |||
| 81 | =cut | ||