1 package LaTeX::TikZ::Set::Path;
8 LaTeX::TikZ::Set::Path - A set object representing a path.
16 our $VERSION = '0.01';
19 use Any::Moose 'Util::TypeConstraints'
20 => [ qw/subtype as where find_type_constraint/ ];
24 LaTeX::TikZ::Set::Mutable
27 subtype 'LaTeX::TikZ::Set::Path::Elements'
29 => where { $_->does('LaTeX::TikZ::Set::Op') };
33 isa => 'Maybe[ArrayRef[LaTeX::TikZ::Set::Path::Elements]]',
35 default => sub { [ ] },
38 sub ops { @{$_[0]->_ops} }
40 my $ltspe_tc = find_type_constraint('LaTeX::TikZ::Set::Path::Elements');
45 $ltspe_tc->assert_valid($_) for @_;
47 push @{$set->_ops}, @_;
55 join ' ', map $_->path(@_), $set->ops;
58 use LaTeX::TikZ::Interface path => sub {
61 __PACKAGE__->new(ops => \@_);
64 __PACKAGE__->meta->make_immutable;
68 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
70 You can contact me by mail or on C<irc.perl.org> (vincent).
74 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
75 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
79 You can find documentation for this module with the perldoc command.
83 =head1 COPYRIGHT & LICENSE
85 Copyright 2010 Vincent Pit, all rights reserved.
87 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
91 1; # End of LaTeX::TikZ::Set::Path