]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Mod/Formatted.pm
This is 0.02
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Mod / Formatted.pm
index 5bda2470b4132fdd4c9851c9374ac3ab02767022..7e7b1098f7e1a2475f47b6c78037c638f96d2f0b 100644 (file)
@@ -9,14 +9,23 @@ LaTeX::TikZ::Mod::Formatted - Intermediate object between a modifier object and
 
 =head1 VERSION
 
-Version 0.01
+Version 0.02
 
 =cut
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 use Any::Moose;
-use Any::Moose 'Util::TypeConstraints';
+use Any::Moose 'Util::TypeConstraints' => [
+ 'enum',
+ qw(coerce from via),
+];
+
+=head1 ATTRIBUTES
+
+=head2 C<type>
+
+=cut
 
 has 'type' => (
  is       => 'ro',
@@ -24,6 +33,10 @@ has 'type' => (
  required => 1,
 );
 
+=head2 C<content>
+
+=cut
+
 has 'content' => (
  is       => 'ro',
  isa      => 'Str',
@@ -34,6 +47,12 @@ coerce 'LaTeX::TikZ::Mod::Formatted'
     => from 'Str'
     => via { LaTeX::TikZ::Mod::Formatted->new(type => 'raw', content => $_) };
 
+=head1 METHODS
+
+=head2 C<tag>
+
+=cut
+
 sub tag {
  my ($self) = @_;
 
@@ -42,6 +61,10 @@ sub tag {
 
 __PACKAGE__->meta->make_immutable;
 
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>.
+
 =head1 AUTHOR
 
 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.