Browse files

Convert to a plugin

  • Loading branch information...
1 parent e26e0e7 commit 87f0233944f2d6a0da95576bebbf96ef325dc6d6 @rafl committed Jun 5, 2010
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/Pod/Weaver/{Section/FixedEncoding.pm → Plugin/Encoding.pm}
  2. +1 −1 t/weaver.ini
View
6 lib/Pod/Weaver/Section/FixedEncoding.pm → lib/Pod/Weaver/Plugin/Encoding.pm
@@ -1,4 +1,4 @@
-package Pod::Weaver::Section::FixedEncoding;
+package Pod::Weaver::Plugin::Encoding;
# ABSTRACT: Add an encoding command to your POD
use Moose;
@@ -46,7 +46,7 @@ has encoding => (
=method finalize_document
This method prepends an C<=encoding> command with the content of the
-C<encoding> attribute's value to the documents children.
+C<encoding> attribute's value to the document's children.
Does nothing if the document already has an C<=encoding> command.
@@ -82,4 +82,6 @@ document that's being woven.
=cut
+__PACKAGE__->meta->make_immutable;
+
1;
View
2 t/weaver.ini
@@ -2,5 +2,5 @@
[Leftovers]
-[FixedEncoding]
+[-Encoding]
encoding = wtf-8

0 comments on commit 87f0233

Please sign in to comment.