2 package MooseX::Storage::Meta::Attribute::DoNotSerialize;
6 our $AUTHORITY = 'cpan:STEVAN';
8 extends 'Moose::Meta::Attribute';
9 with 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize';
11 # register this alias ...
12 package Moose::Meta::Attribute::Custom::DoNotSerialize;
14 our $VERSION = '0.31';
15 our $AUTHORITY = 'cpan:STEVAN';
17 sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' }
27 MooseX::Storage::Meta::Attribute::DoNotSerialize - A custom meta-attribute to bypass serialization
35 with Storage('format' => 'JSON', 'io' => 'File');
37 has 'x' => (is => 'rw', isa => 'Int');
38 has 'y' => (is => 'rw', isa => 'Int');
41 metaclass => 'DoNotSerialize',
50 Sometimes you don't want a particular attribute to be part of the
51 serialization, in this case, you want to make sure that attribute
52 uses this custom meta-attribute. See the SYNOPSIS for a nice example
53 that can be easily cargo-culted.
67 All complex software has bugs lurking in it, and this module is no
68 exception. If you find a bug please either email me, or add the bug
73 Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
75 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
77 =head1 COPYRIGHT AND LICENSE
79 Copyright 2007-2008 by Infinity Interactive, Inc.
81 L<http://www.iinteractive.com>
83 This library is free software; you can redistribute it and/or modify
84 it under the same terms as Perl itself.