Some small test improvements.
[gitmo/MooseX-ClassAttribute.git] / lib / MooseX / ClassAttribute.pm
CommitLineData
4dee0fd3 1package MooseX::ClassAttribute;
2
3use warnings;
4use strict;
5
6our $VERSION = '0.01';
0f24a39d 7our $AUTHORITY = 'cpan:DROLSKY';
8
9use Moose;
10use MooseX::ClassAttribute::Meta::Method::Accessor;
11
12extends 'Moose::Meta::Attribute';
13
14sub accessor_metaclass { 'MooseX::ClassAttribute::Meta::Method::Accessor' }
15
16# This is called when an object is constructed.
17sub initialize_instance_slot
18{
19 return;
20}
21
22
23# This is the bit of magic that lets you specify the metaclass as
24# 'ClassAttribute', rather than the full name, when creating an
25# attribute.
26package Moose::Meta::Attribute::Custom::ClassAttribute;
27
28sub register_implementation { 'MooseX::ClassAttribute' }
4dee0fd3 29
30
311;
32
33__END__
34
35=pod
36
37=head1 NAME
38
39MooseX::ClassAttribute - The fantastic new MooseX::ClassAttribute!
40
4dee0fd3 41=head1 SYNOPSIS
42
43Quick summary of what the module does.
44
45Perhaps a little code snippet.
46
47 use MooseX::ClassAttribute;
48
0f24a39d 49 my $foo = MooseX::ClassAttribute->new();
4dee0fd3 50
51 ...
52
53=head1 METHODS
54
55This class provides the following methods
56
57=head1 AUTHOR
58
59Dave Rolsky, C<< <autarch@urth.org> >>
60
61=head1 BUGS
62
63Please report any bugs or feature requests to C<bug-moosex-classattribute@rt.cpan.org>,
64or through the web interface at L<http://rt.cpan.org>. I will be
65notified, and then you'll automatically be notified of progress on
66your bug as I make changes.
67
68=head1 COPYRIGHT & LICENSE
69
70Copyright 2007 Dave Rolsky, All Rights Reserved.
71
72This program is free software; you can redistribute it and/or modify
73it under the same terms as Perl itself.
74
75=cut