Merge branch 'stable'
[gitmo/Class-MOP.git] / lib / Class / MOP / Mixin.pm
CommitLineData
9b871d79 1package Class::MOP::Mixin;
2
3use strict;
4use warnings;
5
bd2550f8 6our $VERSION = '1.12';
9b871d79 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
10use Scalar::Util 'blessed';
11
12sub meta {
13 require Class::MOP::Class;
14 Class::MOP::Class->initialize( blessed( $_[0] ) || $_[0] );
15}
16
171;
18
19__END__
20
21=pod
22
23=head1 NAME
24
25Class::MOP::Mixin - Base class for mixin classes
26
27=head1 DESCRIPTION
28
29This class provides a single method shared by all mixins
30
31=head1 METHODS
32
33This class provides a few methods which are useful in all metaclasses.
34
35=over 4
36
37=item B<< Class::MOP::Mixin->meta >>
38
39This returns a L<Class::MOP::Class> object for the mixin class.
40
41=back
42
43=head1 AUTHORS
44
45Dave Rolsky E<lt>autarch@urth.orgE<gt>
46
47=head1 COPYRIGHT AND LICENSE
48
3e2c8600 49Copyright 2006-2010 by Infinity Interactive, Inc.
9b871d79 50
51L<http://www.iinteractive.com>
52
53This library is free software; you can redistribute it and/or modify
54it under the same terms as Perl itself.
55
56=cut