X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMod%2FWidth.pm;h=d0ee31eae52de4ee13289553a70cdaf5db1187a4;hb=615913e4089427f90d33b25bd69534e202ae31ef;hp=58a8804faced24824db0f39df6f2c9451f6cc178;hpb=0f9d7c1a2d11bc7001fe450cb2086e67c13a39e9;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Mod/Width.pm b/lib/LaTeX/TikZ/Mod/Width.pm index 58a8804..d0ee31e 100644 --- a/lib/LaTeX/TikZ/Mod/Width.pm +++ b/lib/LaTeX/TikZ/Mod/Width.pm @@ -9,11 +9,11 @@ LaTeX::TikZ::Mod::Width - A modifier that sets the line width. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; use LaTeX::TikZ::Interface; @@ -23,7 +23,7 @@ use Any::Moose; =head1 RELATIONSHIPS -This class consumes the L role, and as such implements the L, L, L and L methods. +This class consumes the L role, and as such implements the L, L, L and L methods. =cut @@ -37,7 +37,7 @@ with 'LaTeX::TikZ::Mod'; has 'width' => ( is => 'ro', - isa => 'Int', + isa => 'Num', required => 1, ); @@ -49,11 +49,11 @@ has 'width' => ( sub tag { ref $_[0] } -=head2 C +=head2 C =cut -sub cover { LaTeX::TikZ::Tools::numeq($_[0]->width, $_[1]->width) } +sub covers { LaTeX::TikZ::Tools::numeq($_[0]->width, $_[1]->width) } =head2 C