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