1Padre::PPI::UpdateCopyrUisgehrt(C3o)ntributed Perl DocumPeandtraet:i:oPnPI::UpdateCopyright(3)
2
3
4

NAME

6       Padre::PPI::UpdateCopyright - Demonstration transform
7

SYNOPSIS

9         my $transform = Padre::PPI::UpdateCopyright->new(
10             name => 'Adam Kennedy'
11         );
12         $transform->apply( Padre::Current->document );
13

DESCRIPTION

15       "Padre::PPI::UpdateCopyright" provides a demonstration of a typical
16       Padre::Transform class.
17
18       This class implements a document transform that will take the name of
19       an author and update the copyright statement to refer to the current
20       year, if it does not already do so.
21

METHODS

23   new
24         my $transform = Padre::PPI::UpdateCopyright->new(
25             name => 'Adam Kennedy'
26         );
27
28       The "new" constructor creates a new transform object for a specific
29       author. It takes a single "name" parameter that should be the name (or
30       longer string) for the author.
31
32       Specifying the name is required to allow the changing of a subset of
33       copyright statements that refer to you from a larger set in a file.
34
35   name
36       The "name" accessor returns the author name that the transform will be
37       searching for copyright statements of.
38

TO DO

40       May need to overload some methods to forcefully prevent Document
41       objects becoming children of another Node.
42

SUPPORT

44       See the support section in the main module.
45

AUTHOR

47       Adam Kennedy <adamk@cpan.org>
48
50       Copyright 2009-2010 The Padre development team as listed in Padre.pm.
51
52       This program is free software; you can redistribute it and/or modify it
53       under the same terms as Perl itself.
54
55       The full text of the license can be found in the LICENSE file included
56       with this module.
57
58
59
60perl v5.32.1                      2021-01-27    Padre::PPI::UpdateCopyright(3)
Impressum