X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FOp.pm;h=0a3df1b1c3f00340ffff650bf5dac6d947908af3;hb=0f9d7c1a2d11bc7001fe450cb2086e67c13a39e9;hp=ffd79a5633256fe4b801e4556e28f70d535cfbcd;hpb=e8f0879ade07eed4f58cd52c0771f4e1ecc90b09;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Op.pm b/lib/LaTeX/TikZ/Set/Op.pm index ffd79a5..0a3df1b 100644 --- a/lib/LaTeX/TikZ/Set/Op.pm +++ b/lib/LaTeX/TikZ/Set/Op.pm @@ -15,18 +15,56 @@ 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 + +=back + +=cut + requires qw( path ); +=head2 C + +=cut + sub draw { my $set = shift; - "\\draw " . $set->path(@_) . " ;\n"; + [ "\\draw " . $set->path(@_) . ' ;' ]; } +=head1 SEE ALSO + +L, L. + =head1 AUTHOR Vincent Pit, C<< >>, L.