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