X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FSequence.pm;h=dfb30f73e19799542d05091a9847d11adbc34b79;hb=f54cadb836315572aa2c4bcb16f221da1687df7a;hp=0bf9222d28e1e0f38a30b45959aeb0ee219e6b68;hpb=af7d6a5aef3bf5fec0c187b3a13a14adc88251fd;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Sequence.pm b/lib/LaTeX/TikZ/Set/Sequence.pm index 0bf9222..dfb30f7 100644 --- a/lib/LaTeX/TikZ/Set/Sequence.pm +++ b/lib/LaTeX/TikZ/Set/Sequence.pm @@ -9,11 +9,11 @@ LaTeX::TikZ::Set::Sequence - A set object grouping a sequence of objects. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; use List::Util (); @@ -26,6 +26,12 @@ use Any::Moose; use Any::Moose 'Util::TypeConstraints' => [ qw/subtype as where find_type_constraint/ ]; +=head1 RELATIONSHIPS + +This class consumes the L and L roles, and as such implements the L and L methods. + +=cut + with qw( LaTeX::TikZ::Set LaTeX::TikZ::Set::Mutable @@ -38,6 +44,14 @@ subtype 'LaTeX::TikZ::Set::Sequence::Elements' or $_->isa('LaTeX::TikZ::Set::Sequence') }; +=head1 ATTRIBUTES + +=head2 C + +The L or L objects that from the sequence. + +=cut + has '_kids' => ( is => 'ro', isa => 'Maybe[ArrayRef[LaTeX::TikZ::Set::Sequence::Elements]]', @@ -47,6 +61,12 @@ has '_kids' => ( sub kids { @{$_[0]->_kids} } +=head1 METHODS + +=head2 C + +=cut + my $ltsse_tc = find_type_constraint('LaTeX::TikZ::Set::Sequence::Elements'); sub add { @@ -59,6 +79,10 @@ sub add { $set; } +=head2 C + +=cut + sub draw { my $set = shift; @@ -84,6 +108,10 @@ LaTeX::TikZ::Functor->default_rule( __PACKAGE__->meta->make_immutable; +=head1 SEE ALSO + +L, L, L. + =head1 AUTHOR Vincent Pit, C<< >>, L.