=head1 VERSION
-Version 0.01
+Version 0.02
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use LaTeX::TikZ::Interface;
use LaTeX::TikZ::Functor;
+use LaTeX::TikZ::Tools;
+
use Any::Moose;
-use Any::Moose 'Util::TypeConstraints'
- => [ qw/subtype as where find_type_constraint/ ];
=head1 RELATIONSHIPS
=cut
-subtype 'LaTeX::TikZ::Set::Path::Elements'
- => as 'Object'
- => where { $_->does('LaTeX::TikZ::Set::Op') };
-
has '_ops' => (
is => 'ro',
- isa => 'Maybe[ArrayRef[LaTeX::TikZ::Set::Path::Elements]]',
+ isa => 'Maybe[ArrayRef[LaTeX::TikZ::Set::Op]]',
init_arg => 'ops',
default => sub { [ ] },
);
=cut
-my $ltspe_tc = find_type_constraint('LaTeX::TikZ::Set::Path::Elements');
+my $ltso_tc = LaTeX::TikZ::Tools::type_constraint('LaTeX::TikZ::Set::Op');
sub add {
my $set = shift;
- $ltspe_tc->assert_valid($_) for @_;
+ $ltso_tc->assert_valid($_) for @_;
push @{$set->_ops}, @_;
__PACKAGE__->meta->make_immutable;
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>, L<LaTeX::TikZ::Set::Op>, L<LaTeX::TikZ::Set::Mutable>.
+
=head1 AUTHOR
Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.