X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMod%2FRaw.pm;h=28b1d1dc69c420e41fc85efd81a506f686c648b8;hb=4a815ba07fc07f94629ca6364fae6204988e3dab;hp=f5a32183e9b0a6200646e63f34df0a9b47d74cff;hpb=f5c0e86537504962a65b3efc85bfdc44657fa8d2;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Mod/Raw.pm b/lib/LaTeX/TikZ/Mod/Raw.pm index f5a3218..28b1d1d 100644 --- a/lib/LaTeX/TikZ/Mod/Raw.pm +++ b/lib/LaTeX/TikZ/Mod/Raw.pm @@ -15,6 +15,8 @@ Version 0.01 our $VERSION = '0.01'; +use LaTeX::TikZ::Interface; + use Any::Moose; with 'LaTeX::TikZ::Mod'; @@ -37,11 +39,13 @@ sub declare { } sub apply { $_[0]->content } -use LaTeX::TikZ::API raw_mod => sub { - shift; +LaTeX::TikZ::Interface->register( + raw_mod => sub { + shift; - __PACKAGE__->new(content => $_[0]); -}; + __PACKAGE__->new(content => $_[0]); + }, +); __PACKAGE__->meta->make_immutable;