1 package LaTeX::TikZ::Set::Raw;
8 LaTeX::TikZ::Set::Raw - A literal chunk of TikZ code.
16 our $VERSION = '0.02';
18 use LaTeX::TikZ::Interface;
19 use LaTeX::TikZ::Functor;
25 This class consumes the L<LaTeX::TikZ::Set::Op> role, and as such implements the L</path> method.
29 with 'LaTeX::TikZ::Set::Op';
35 The bare string the raw mod is made of.
51 sub path { $_[0]->content }
53 LaTeX::TikZ::Interface->register(
57 __PACKAGE__->new(content => join ' ', @_);
61 LaTeX::TikZ::Functor->default_rule(
62 (__PACKAGE__) => sub {
63 my ($functor, $set, @args) = @_;
64 $set->new(content => $set->content);
68 __PACKAGE__->meta->make_immutable;
72 L<LaTeX::TikZ>, L<LaTeX::TikZ::Set::Op>.
76 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
78 You can contact me by mail or on C<irc.perl.org> (vincent).
82 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
83 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
87 You can find documentation for this module with the perldoc command.
91 =head1 COPYRIGHT & LICENSE
93 Copyright 2010 Vincent Pit, all rights reserved.
95 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
99 1; # End of LaTeX::TikZ::Set::Raw