From: Tomas Doran Date: Sun, 10 Jan 2010 22:41:15 +0000 (+0000) Subject: Add a role for MooseX::Storage X-Git-Tag: 0.002002~45 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3dd2722f6d6f0735b771a139217a935a8e701714;hp=9d6515c8b53ef0e4001fa4dca897640a15e628ab;p=catagits%2FGitalist.git Add a role for MooseX::Storage --- diff --git a/lib/Gitalist/Serializeable.pm b/lib/Gitalist/Serializeable.pm new file mode 100644 index 0000000..c430127 --- /dev/null +++ b/lib/Gitalist/Serializeable.pm @@ -0,0 +1,32 @@ +package Gitalist::Serializeable; +use Moose::Role; +use namespace::autoclean; +use MooseX::Storage; + +with Storage( traits => [qw|OnlyWhenBuilt|] ); + +1; + +=head1 NAME + +Gitalist::Serializeable + +=head1 SYNOPSIS + + class Gitalist::Git::Foo with Gitalist::Serializeable { + ... + } + +=head1 DESCRIPTION + +Role which applies a customised L. + +=head1 AUTHORS + +See L for authors. + +=head1 LICENSE + +See L for the license. + +=cut