2 package MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize;
5 # register this alias ...
6 package Moose::Meta::Attribute::Custom::Trait::DoNotSerialize;
8 sub register_implementation { 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize' }
18 MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize - A custom meta-attribute-trait to bypass serialization
26 with Storage('format' => 'JSON', 'io' => 'File');
28 has 'x' => (is => 'rw', isa => 'Int');
29 has 'y' => (is => 'rw', isa => 'Int');
32 traits => [ 'DoNotSerialize' ],
41 Sometimes you don't want a particular attribute to be part of the
42 serialization, in this case, you want to make sure that attribute
43 uses this custom meta-attribute-trait. See the SYNOPSIS for a nice
44 example that can be easily cargo-culted.
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 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
66 =head1 COPYRIGHT AND LICENSE
68 Copyright 2007-2008 by Infinity Interactive, Inc.
70 L<http://www.iinteractive.com>
72 This library is free software; you can redistribute it and/or modify
73 it under the same terms as Perl itself.