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
24 use metaclass 'MooseX::MetaDescription::Meta::Class';
27 __PACKAGE__->meta->description->{'Hello'} = 'World';
30 metaclass => 'MooseX::MetaDescription::Meta::Attribute',
33 default => sub { 'Foo::bar' },
35 baz => 'Foo::bar::baz',
41 $foo->meta->description; # { 'Hello' => 'World' }
42 $foo->meta->get_attribute('bar')->description; # { baz => 'Foo::bar::baz' }
46 MooseX::MetaDescription allows you to add arbitrary out of band metadata to your Moose classes and attributes.
58 All complex software has bugs lurking in it, and this module is no
59 exception. If you find a bug please either email me, or add the bug
64 Code and Design originally by Jonathan Rockway in the Ernst module,
65 extracted and refactored by:
67 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
69 =head1 COPYRIGHT AND LICENSE
71 Copyright 2008 Infinity Interactive, Inc.
73 L<http://www.iinteractive.com>
75 This library is free software; you can redistribute it and/or modify
76 it under the same terms as Perl itself.