Fix order of loading in SYNOPSIS
[gitmo/MooseX-SemiAffordanceAccessor.git] / lib / MooseX / SemiAffordanceAccessor.pm
CommitLineData
b95d9f9b 1package MooseX::SemiAffordanceAccessor;
2
3use strict;
4use warnings;
5
7891bc29 6use Moose 0.94 ();
b95d9f9b 7use Moose::Exporter;
8use Moose::Util::MetaRole;
9use MooseX::SemiAffordanceAccessor::Role::Attribute;
10
5177f5e0 11Moose::Exporter->setup_import_methods(
12 class_metaroles => {
13 attribute => ['MooseX::SemiAffordanceAccessor::Role::Attribute'],
14 },
15);
b95d9f9b 16
b95d9f9b 171;
18
5177f5e0 19# ABSTRACT: Name your accessors foo() and set_foo()
20
b95d9f9b 21__END__
22
23=pod
24
b95d9f9b 25=head1 SYNOPSIS
26
b95d9f9b 27 use Moose;
8d547f46 28 use MooseX::SemiAffordanceAccessor;
b95d9f9b 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 have the same name
37as the accessor, while set methods are prefixed with "set_".
38
39If you define an attribute with a leading underscore, then the set
40method will start with "_set_".
41
42If you explicitly set a "reader" or "writer" name when creating an
43attribute, then that attribute's naming scheme is left unchanged.
44
45The name "semi-affordance" comes from David Wheeler's Class::Meta
46module.
47
b95d9f9b 48=head1 BUGS
49
50Please report any bugs or feature requests to
51C<bug-moosex-semiaffordanceaccessor@rt.cpan.org>, or through
52the web interface at L<http://rt.cpan.org>. I will be notified, and
53then you'll automatically be notified of progress on your bug as I
54make changes.
55
b95d9f9b 56=cut