2 package MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize;
6 our $AUTHORITY = 'cpan:STEVAN';
8 # register this alias ...
9 package Moose::Meta::Attribute::Custom::Trait::DoNotSerialize;
11 our $VERSION = '0.25';
12 our $AUTHORITY = 'cpan:STEVAN';
14 sub register_implementation { 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize' }
24 MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize - A custom meta-attribute-trait to bypass serialization
32 with Storage('format' => 'JSON', 'io' => 'File');
34 has 'x' => (is => 'rw', isa => 'Int');
35 has 'y' => (is => 'rw', isa => 'Int');
38 traits => [ 'DoNotSerialize' ],
47 Sometimes you don't want a particular attribute to be part of the
48 serialization, in this case, you want to make sure that attribute
49 uses this custom meta-attribute-trait. See the SYNOPSIS for a nice
50 example that can be easily cargo-culted.
64 All complex software has bugs lurking in it, and this module is no
65 exception. If you find a bug please either email me, or add the bug
70 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
72 =head1 COPYRIGHT AND LICENSE
74 Copyright 2007-2008 by Infinity Interactive, Inc.
76 L<http://www.iinteractive.com>
78 This library is free software; you can redistribute it and/or modify
79 it under the same terms as Perl itself.