1 package MooseX::MetaDescription;
5 our $AUTHORITY = 'cpan:STEVAN';
7 use MooseX::MetaDescription::Meta::Class;
8 use MooseX::MetaDescription::Meta::Attribute;
9 use MooseX::MetaDescription::Description;
19 MooseX::MetaDescription - A framework for adding additional metadata to Moose classes
27 metaclass => 'MooseX::MetaDescription::Meta::Attribute',
30 default => sub { Bar->new() },
32 node_type => 'element',
38 $foo->meta->description; # { 'Hello' => 'World' }
39 $foo->meta->get_attribute('bar')->description; # { baz => 'Foo::bar::baz' }
43 MooseX::MetaDescription allows you to add arbitrary out of band metadata to your Moose classes and attributes. This will allow you to
44 track out of band data along with attributes, which is very useful for say serializing Moose classes in HTML or XML.
56 All complex software has bugs lurking in it, and this module is no
57 exception. If you find a bug please either email me, or add the bug
62 Code and Design originally by Jonathan Rockway in the Ernst module,
63 extracted and refactored by:
65 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
67 =head1 COPYRIGHT AND LICENSE
69 Copyright 2008 Infinity Interactive, Inc.
71 L<http://www.iinteractive.com>
73 This library is free software; you can redistribute it and/or modify
74 it under the same terms as Perl itself.