]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Mod.pm
First cut at the documentation
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Mod.pm
index dbee13dbeef4db32039a8cdde8de9661b120c311..87cec117c14162236baeeff5f8dbf6ca6811f994 100644 (file)
@@ -15,9 +15,41 @@ Version 0.01
 
 our $VERSION = '0.01';
 
+=head1 DESCRIPTION
+
+This role should be consumed by all the modifier classes.
+
+=cut
+
 use Any::Moose 'Role';
 use Any::Moose 'Util::TypeConstraints';
 
+=head1 METHODS
+
+These methods are required by the interface :
+
+=over 4
+
+=item *
+
+C<tag>
+
+=item *
+
+C<cover>
+
+=item *
+
+C<declare>
+
+=item *
+
+C<apply>
+
+=back
+
+=cut
+
 requires qw(
  tag
  cover
@@ -27,7 +59,7 @@ requires qw(
 
 coerce 'LaTeX::TikZ::Mod'
     => from 'Str'
-    => via { LaTeX::TikZ::Mod::Raw->new($_) };
+    => via { LaTeX::TikZ::Mod::Raw->new(content => $_) };
 
 =head1 AUTHOR