X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FOp.pm;h=c7229c05db45ab6cbe18948236383f20443c0a8f;hb=09672e9c20f667050359f33e3ac4ac9c923a3132;hp=2c85f0bace0788f560f46f221d32b820c682cac1;hpb=c314e50ea7c67844e6cf5f4d1431d8bf41a39f1a;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Op.pm b/lib/LaTeX/TikZ/Set/Op.pm index 2c85f0b..c7229c0 100644 --- a/lib/LaTeX/TikZ/Set/Op.pm +++ b/lib/LaTeX/TikZ/Set/Op.pm @@ -15,18 +15,58 @@ Version 0.01 our $VERSION = '0.01'; +=head1 DESCRIPTION + +Ops are the components of a path. +They can be built together to form a path. +Thus, they are all the elements against which we can call the C method. + +=cut + use Any::Moose 'Role'; +=head1 RELATIONSHIPS + +This role consumes the L role, and as such implements the L method. + +=cut + +with 'LaTeX::TikZ::Set'; + +=head1 METHODS + +This method is required by the interface : + +=over 4 + +=item * + +C + +Returns the TikZ code that builds a path out of the current set object as a string formatted by the L object C<$formatter>. + +=back + +=cut + requires qw( path ); +=head2 C + +=cut + sub draw { my $set = shift; [ "\\draw " . $set->path(@_) . ' ;' ]; } +=head1 SEE ALSO + +L, L. + =head1 AUTHOR Vincent Pit, C<< >>, L.