2 package MooseX::Storage::Meta::Attribute::DoNotSerialize;
7 extends 'Moose::Meta::Attribute';
9 # register this alias ...
10 package Moose::Meta::Attribute::Custom::DoNotSerialize;
12 our $VERSION = '0.01';
14 sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' }
24 MooseX::Storage::Meta::Attribute::DoNotSerialize
32 with Storage('format' => 'JSON', 'io' => 'File');
34 has 'x' => (is => 'rw', isa => 'Int');
35 has 'y' => (is => 'rw', isa => 'Int');
38 metaclass => '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. See the SYNOPSIS for a nice example
50 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 Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
72 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
74 =head1 COPYRIGHT AND LICENSE
76 Copyright 2007 by Infinity Interactive, Inc.
78 L<http://www.iinteractive.com>
80 This library is free software; you can redistribute it and/or modify
81 it under the same terms as Perl itself.