X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMeta%2FTypeConstraint%2FAutocoerce.pm;h=521a473b67c083524d503c32a6e5e40820a14ea6;hp=9cc2322913697542f680313b7c9bba6aeba995dc;hb=e6c6fbca8df4f8df7bbce2eb98dd260ed51d9141;hpb=fcf49f47b7655e0bc3ed8c3da7f1004cbb70c7a5 diff --git a/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm b/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm index 9cc2322..521a473 100644 --- a/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm +++ b/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm @@ -21,23 +21,41 @@ use Any::Moose; extends any_moose('Meta::TypeConstraint'); +=head1 ATTRIBUTES + +=head2 C + +=cut + has 'mapper' => ( is => 'ro', isa => 'CodeRef', ); +=head2 C + +=cut + has 'parent_name' => ( is => 'ro', isa => 'ClassName', required => 1, ); +=head2 C + +=cut + has 'user_constraint' => ( is => 'ro', isa => 'Maybe[CodeRef]', required => 1, ); +=head1 METHODS + +=cut + around 'new' => sub { my ($orig, $class, %args) = @_; @@ -67,6 +85,10 @@ around 'new' => sub { $tc = $class->$orig(%args); }; +=head2 C + +=cut + sub load { my ($tc, $thing) = @_;