NAME
Document::Transform::Role::Transformer - Provides an interface role for Transformers implementations
VERSION
version 1.110400
SYNOPSIS
package MyTransformer;
use Moose;
sub transform() { say 'Yarp!'; }
with 'Document::Transform::Role::Transformer';
1;
DESCRIPTION
Want to implement your own transformer and feed it directly to Document::Transform? Then this is your role.
Simply implement a suitable transform method and consume the role.
ROLE_REQUIRES
transform
This role requires that you provide the transform method. If merely substituting your own Transformer implementation, transform will need to take two arguments, a "Document" in Document::Transform::Types and a "Transform" in Document::Transform::Types with the expectation that the operations contained with in the Transform are executed against the Document, and the result returned.
AUTHOR
Nicholas R. Perez <nperez@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.