X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMod%2FFormatted.pm;h=48b62f8436325641cd0b54b76bd9ee7e2c1b69d9;hp=5bda2470b4132fdd4c9851c9374ac3ab02767022;hb=238df6b885795c82a210aa8596b5faac303b2d14;hpb=e8f0879ade07eed4f58cd52c0771f4e1ecc90b09 diff --git a/lib/LaTeX/TikZ/Mod/Formatted.pm b/lib/LaTeX/TikZ/Mod/Formatted.pm index 5bda247..48b62f8 100644 --- a/lib/LaTeX/TikZ/Mod/Formatted.pm +++ b/lib/LaTeX/TikZ/Mod/Formatted.pm @@ -16,7 +16,16 @@ Version 0.01 our $VERSION = '0.01'; use Any::Moose; -use Any::Moose 'Util::TypeConstraints'; +use Any::Moose 'Util::TypeConstraints' => [ + 'enum', + qw(coerce from via), +]; + +=head1 ATTRIBUTES + +=head2 C + +=cut has 'type' => ( is => 'ro', @@ -24,6 +33,10 @@ has 'type' => ( 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.