X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FFunctor%2FRule.pm;h=81b57355435fa408bea7bada1a7cee8bd651588c;hb=062ab95259610ce39ace60365b659d6113420ce7;hp=4dbe9790508564df7bfaea60761096feef36b8c6;hpb=65b895926935d98e3bd34b82a6e8b4e4e6b2f09c;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Functor/Rule.pm b/lib/LaTeX/TikZ/Functor/Rule.pm index 4dbe979..81b5735 100644 --- a/lib/LaTeX/TikZ/Functor/Rule.pm +++ b/lib/LaTeX/TikZ/Functor/Rule.pm @@ -24,9 +24,9 @@ A functor is basically an ordered collection of rules. use Carp (); -use Any::Moose; -use Any::Moose 'Util' => [ qw ]; -use Any::Moose 'Util::TypeConstraints'; +use Mouse; +use Mouse::Util qw; +use Mouse::Util::TypeConstraints; =head1 ATTRIBUTES @@ -105,7 +105,7 @@ around 'BUILDARGS' => sub { my $meta = find_meta($target); Carp::confess("No meta object associated with target $target") unless defined $meta; - $args{is_role} = $meta->isa(any_moose('Meta::Role')); + $args{is_role} = $meta->isa('Mouse::Meta::Role'); my $is_set; if (does_role($target, 'LaTeX::TikZ::Set')) { @@ -196,7 +196,7 @@ sub insert { } if (defined $pos) { - splice @$list, $pos, 1, $rule; + splice @$list, $pos, 0, $rule; return 0; } } @@ -242,7 +242,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.