X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FSet%2FRaw.pm;h=864128750bd2c2edb63a7ef962dc6aef378ac102;hb=6832c809e7591e1c3e2809654f814c298d28d2ef;hp=d96fc3b4eeb0bef5807d01aedf6b6f04fcedd873;hpb=92147217516a40b35ca00c8e08939e8aa5478426;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Set/Raw.pm b/lib/LaTeX/TikZ/Set/Raw.pm index d96fc3b..8641287 100644 --- a/lib/LaTeX/TikZ/Set/Raw.pm +++ b/lib/LaTeX/TikZ/Set/Raw.pm @@ -9,17 +9,32 @@ LaTeX::TikZ::Set::Raw - A literal chunk of TikZ code. =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 Any::Moose; -with 'LaTeX::TikZ::Set::Op'; +=head1 RELATIONSHIPS + +This class consumes the L role, and as such implements the L method. + +=cut + +with 'LaTeX::TikZ::Set::Path'; + +=head1 ATTRIBUTES + +=head2 C + +The bare string the raw set is made of. + +=cut has 'content' => ( is => 'ro', @@ -27,13 +42,33 @@ has 'content' => ( required => 1, ); +=head1 METHODS + +=head2 C + +=cut + sub path { $_[0]->content } -use LaTeX::TikZ::Interface raw => sub { - shift; +=head2 C + +=cut + +sub begin { undef } + +=head2 C + +=cut + +sub end { undef } + +LaTeX::TikZ::Interface->register( + raw => sub { + shift; - __PACKAGE__->new(content => join ' ', @_); -}; + __PACKAGE__->new(content => join ' ', @_); + }, +); LaTeX::TikZ::Functor->default_rule( (__PACKAGE__) => sub { @@ -44,6 +79,10 @@ LaTeX::TikZ::Functor->default_rule( __PACKAGE__->meta->make_immutable; +=head1 SEE ALSO + +L, L. + =head1 AUTHOR Vincent Pit, C<< >>, L.