bump version to 1.14
[gitmo/Moose.git] / lib / Moose / Meta / Mixin / AttributeCore.pm
CommitLineData
f785aad8 1package Moose::Meta::Mixin::AttributeCore;
2
3use strict;
4use warnings;
5
b6cca0d5 6our $VERSION = '1.14';
f785aad8 7our $AUTHORITY = 'cpan:STEVAN';
8
9use base 'Class::MOP::Mixin::AttributeCore';
10
11__PACKAGE__->meta->add_attribute( 'isa' => ( reader => '_isa_metadata' ) );
12__PACKAGE__->meta->add_attribute( 'does' => ( reader => '_does_metadata' ) );
13__PACKAGE__->meta->add_attribute( 'is' => ( reader => '_is_metadata' ) );
14
15__PACKAGE__->meta->add_attribute( 'required' => ( reader => 'is_required' ) );
16__PACKAGE__->meta->add_attribute( 'lazy' => ( reader => 'is_lazy' ) );
17__PACKAGE__->meta->add_attribute(
18 'lazy_build' => ( reader => 'is_lazy_build' ) );
19__PACKAGE__->meta->add_attribute( 'coerce' => ( reader => 'should_coerce' ) );
20__PACKAGE__->meta->add_attribute( 'weak_ref' => ( reader => 'is_weak_ref' ) );
21__PACKAGE__->meta->add_attribute(
22 'auto_deref' => ( reader => 'should_auto_deref' ) );
23__PACKAGE__->meta->add_attribute(
24 'type_constraint' => (
25 reader => 'type_constraint',
26 predicate => 'has_type_constraint',
27 )
28);
29__PACKAGE__->meta->add_attribute(
30 'trigger' => (
31 reader => 'trigger',
32 predicate => 'has_trigger',
33 )
34);
35__PACKAGE__->meta->add_attribute(
36 'handles' => (
37 reader => 'handles',
38 writer => '_set_handles',
39 predicate => 'has_handles',
40 )
41);
42__PACKAGE__->meta->add_attribute(
43 'documentation' => (
44 reader => 'documentation',
45 predicate => 'has_documentation',
46 )
47);
48
491;
50
51__END__
52
53=pod
54
55=head1 NAME
56
57Moose::Meta::Mixin::AttributeCore - Core attributes shared by attribute metaclasses
58
59=head1 DESCRIPTION
60
61This class implements the core attributes (aka properties) shared by all Moose
62attributes. See the L<Moose::Meta::Attribute> documentation for API details.
63
c5fc2c21 64=head1 BUGS
65
66See L<Moose/BUGS> for details on reporting bugs.
67
f785aad8 68=head1 AUTHORS
69
70Dave Rolsky E<lt>autarch@urth.orgE<gt>
71
72=head1 COPYRIGHT AND LICENSE
73
7e0492d3 74Copyright 2006-2010 by Infinity Interactive, Inc.
f785aad8 75
76L<http://www.iinteractive.com>
77
78This library is free software; you can redistribute it and/or modify
79it under the same terms as Perl itself.
80
81=cut