| Padre documentation | Contained in the Padre distribution. |
Padre::PPI::Transform - PPI::Transform integration with Padre
Padre::PPI::Transform is a clear subclass of PPI::Transform which
adds apply integration with PPI::Document objects.
It otherwise adds no significant functionality.
You should inherit transform objects from this class instead of directly from PPI::Transform to ensure that this PPI::Document support is fully initialised.
Adam Kennedy <adamk@cpan.org>
Copyright 2008-2011 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
| Padre documentation | Contained in the Padre distribution. |
package Padre::PPI::Transform;
use 5.008; use strict; use warnings; use PPI::Transform (); our $VERSION = '0.86'; our @ISA = 'PPI::Transform'; __PACKAGE__->register_apply_handler( 'Padre::Document::Perl', sub { my $padre = shift; my $ppi = $padre->ppi_get; return $ppi; }, sub { my $padre = shift; my $ppi = shift; $padre->ppi_set($ppi); return 1; }, ); 1;
# Copyright 2008-2011 The Padre development team as listed in Padre.pm. # LICENSE # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl 5 itself.