=head1 VERSION
-Version 0.01
+Version 0.02
=cut
-our $VERSION = '0.01';
+our $VERSION = '0.02';
-use Any::Moose;
-use Any::Moose 'Util::TypeConstraints';
+use Mouse;
+use Mouse::Util::TypeConstraints qw<enum coerce from via>;
+
+=head1 ATTRIBUTES
+
+=head2 C<type>
+
+=cut
has 'type' => (
is => 'ro',
- isa => enum([ qw/clip layer raw/ ]),
+ isa => enum([ qw<clip layer raw> ]),
required => 1,
);
+=head2 C<content>
+
+=cut
+
has 'content' => (
is => 'ro',
isa => 'Str',
=> from 'Str'
=> via { LaTeX::TikZ::Mod::Formatted->new(type => 'raw', content => $_) };
+=head1 METHODS
+
+=head2 C<tag>
+
+=cut
+
sub tag {
my ($self) = @_;
__PACKAGE__->meta->make_immutable;
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>.
+
=head1 AUTHOR
Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
=head1 COPYRIGHT & LICENSE
-Copyright 2010 Vincent Pit, all rights reserved.
+Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.