0.01 releaase
[gitmo/MooseX-Storage.git] / lib / MooseX / Storage / Meta / Attribute / DoNotSerialize.pm
CommitLineData
b430caa3 1
2package MooseX::Storage::Meta::Attribute::DoNotSerialize;
3use Moose;
4
5extends 'Moose::Meta::Attribute';
6
eebcb6dc 7# register this alias ...
8package Moose::Meta::Attribute::Custom::DoNotSerialize;
9sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' }
10
b430caa3 111;
12
13__END__
14
15=pod
16
17=head1 NAME
18
19MooseX::Storage::Meta::Attribute::DoNotSerialize
20
21=head1 SYNOPSIS
22
b477f392 23 package Point;
24 use Moose;
25 use MooseX::Storage;
26
27 with Storage('format' => 'JSON', 'io' => 'File');
28
29 has 'x' => (is => 'rw', isa => 'Int');
30 has 'y' => (is => 'rw', isa => 'Int');
31
32 has 'foo' => (
33 metaclass => 'DoNotSerialize',
34 is => 'rw',
35 isa => 'CodeRef',
36 );
37
38 1;
39
b430caa3 40=head1 DESCRIPTION
41
b477f392 42Sometimes you don't want a particular attribute to be part of the
43serialization, in this case, you want to make sure that attribute
44uses this custom meta-attribute. See the SYNOPSIS for a nice example
45that can be easily cargo-culted.
46
b430caa3 47=head1 METHODS
48
49=head2 Introspection
50
51=over 4
52
53=item B<meta>
54
55=back
56
57=head1 BUGS
58
59All complex software has bugs lurking in it, and this module is no
60exception. If you find a bug please either email me, or add the bug
61to cpan-RT.
62
63=head1 AUTHOR
64
65Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
66
67Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
68
69=head1 COPYRIGHT AND LICENSE
70
71Copyright 2007 by Infinity Interactive, Inc.
72
73L<http://www.iinteractive.com>
74
75This library is free software; you can redistribute it and/or modify
76it under the same terms as Perl itself.
77
78=cut