From: Chris Prather Date: Tue, 29 Apr 2008 20:51:44 +0000 (+0000) Subject: changes before dashing out the door X-Git-Tag: 0.04~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f2ce52ccc6ccbcf8a2009c5ba5c4f5d3067bc2a3;p=gitmo%2FMooseX-MetaDescription.git changes before dashing out the door --- diff --git a/lib/MooseX/MetaDescription.pm b/lib/MooseX/MetaDescription.pm index eb74454..4606763 100644 --- a/lib/MooseX/MetaDescription.pm +++ b/lib/MooseX/MetaDescription.pm @@ -21,18 +21,15 @@ MooseX::MetaDescription - A framework for adding additional metadata to Moose cl =head1 SYNOPSIS package Foo; - use metaclass 'MooseX::MetaDescription::Meta::Class'; use Moose; - __PACKAGE__->meta->description->{'Hello'} = 'World'; - has 'bar' => ( metaclass => 'MooseX::MetaDescription::Meta::Attribute', is => 'ro', isa => 'Str', - default => sub { 'Foo::bar' }, + default => sub { Bar->new() }, description => { - baz => 'Foo::bar::baz', + node_type => 'element', } ); @@ -43,7 +40,8 @@ MooseX::MetaDescription - A framework for adding additional metadata to Moose cl =head1 DESCRIPTION -MooseX::MetaDescription allows you to add arbitrary out of band metadata to your Moose classes and attributes. +MooseX::MetaDescription allows you to add arbitrary out of band metadata to your Moose classes and attributes. This will allow you to +track out of band data along with attributes, which is very useful for say serializing Moose classes in HTML or XML. =head1 METHODS