X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FPath.pm;h=9dbc902eaa70e0d3a035412660180a3c753216da;hb=4f696c03a66ef6b52ee7b9b3c74a71d5abc64f7e;hp=f7a5fb21b684deb1afca328d216f41597d42db27;hpb=b8f42942311854cb0ef8a3e34c0145846639cd2e;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Path.pm b/lib/LaTeX/TikZ/Set/Path.pm index f7a5fb2..9dbc902 100644 --- a/lib/LaTeX/TikZ/Set/Path.pm +++ b/lib/LaTeX/TikZ/Set/Path.pm @@ -9,11 +9,11 @@ LaTeX::TikZ::Set::Path - A role for set objects that can be part of a path. =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION @@ -21,7 +21,7 @@ Paths are all the elements against which we can call the C method. =cut -use Any::Moose 'Role'; +use Mouse::Role; =head1 RELATIONSHIPS @@ -33,15 +33,28 @@ with 'LaTeX::TikZ::Set'; =head1 METHODS -This method is required by the interface : +These methods are required by the interface : =over 4 =item * -C +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>. +The current evaluation context is passed as the L object C<$context>. + +=item * + +C + +Returns a L object pointing to the beginning of the path, or C if this path has no beginning. + +=item * + +C + +A L object pointing to the end of the path, or C if this path has no end. =back @@ -49,6 +62,8 @@ Returns the TikZ code that builds a path out of the current set object as a stri requires qw< path + begin + end >; =head2 C @@ -84,7 +99,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2010 Vincent Pit, all rights reserved. +Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.