Fix order of code in synopsis
[gitmo/MooseX-FollowPBP.git] / lib / MooseX / FollowPBP.pm
CommitLineData
a623c113 1package MooseX::FollowPBP;
2
3use strict;
4use warnings;
5
6use Moose 0.94 ();
7use Moose::Exporter;
8use Moose::Util::MetaRole;
9use MooseX::FollowPBP::Role::Attribute;
10
11Moose::Exporter->setup_import_methods(
12 class_metaroles => {
13 attribute => ['MooseX::FollowPBP::Role::Attribute'],
14 },
15);
16
171;
18
19# ABSTRACT: Name your accessors get_foo() and set_foo()
20
21__END__
22
23=pod
24
25=head1 SYNOPSIS
26
a623c113 27 use Moose;
b2d35122 28 use MooseX::FollowPBP;
a623c113 29
30 # make some attributes
31
32=head1 DESCRIPTION
33
34This module does not provide any methods. Simply loading it changes
35the default naming policy for the loading class so that accessors are
36separated into get and set methods. The get methods are prefixed with
37"get_" as the accessor, while set methods are prefixed with
38"set_". This is the naming style recommended by Damian Conway in
39I<Perl Best Practices>.
40
41If you define an attribute with a leading underscore, then both the
42get and set method will also have an underscore prefix.
43
44If you explicitly set a "reader" or "writer" name when creating an
45attribute, then that attribute's naming scheme is left unchanged.
46
47=head1 BUGS
48
49Please report any bugs or feature requests to
50C<bug-moosex-followpbp@rt.cpan.org>, or through the web interface at
51L<http://rt.cpan.org>. I will be notified, and then you'll
52automatically be notified of progress on your bug as I make changes.
53
54=cut