X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMod%2FFormatted.pm;h=2dd820b590620e7c0860d6b27bfe38af12a3ca00;hb=95aada0ec5b3c5a0d78ed0ad53436b0e70860bc7;hp=5bda2470b4132fdd4c9851c9374ac3ab02767022;hpb=e8f0879ade07eed4f58cd52c0771f4e1ecc90b09;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Mod/Formatted.pm b/lib/LaTeX/TikZ/Mod/Formatted.pm index 5bda247..2dd820b 100644 --- a/lib/LaTeX/TikZ/Mod/Formatted.pm +++ b/lib/LaTeX/TikZ/Mod/Formatted.pm @@ -9,21 +9,34 @@ 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, +]; + +=head1 ATTRIBUTES + +=head2 C + +=cut has 'type' => ( is => 'ro', - isa => enum([ qw/clip layer raw/ ]), + isa => enum([ qw ]), required => 1, ); +=head2 C + +=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 + +=cut + sub tag { my ($self) = @_; @@ -42,6 +61,10 @@ sub tag { __PACKAGE__->meta->make_immutable; +=head1 SEE ALSO + +L. + =head1 AUTHOR Vincent Pit, C<< >>, L.