ChangeLog and adding yuval to authors everywhere
[gitmo/Class-MOP.git] / lib / Class / MOP / Module.pm
CommitLineData
2243a22b 1
2package Class::MOP::Module;
3
4use strict;
5use warnings;
6
7use Scalar::Util 'blessed';
8
9our $VERSION = '0.01';
10
11use base 'Class::MOP::Package';
12
13# introspection
14
15sub meta {
16 require Class::MOP::Class;
17 Class::MOP::Class->initialize(blessed($_[0]) || $_[0]);
18}
19
7f436b8c 20sub version {
21 my $self = shift;
58d75218 22 ${$self->get_package_symbol('$VERSION')};
7f436b8c 23}
24
2243a22b 251;
26
27__END__
28
29=pod
30
31=head1 NAME
32
33Class::MOP::Module - Module Meta Object
34
35=head1 SYNOPSIS
36
37=head1 DESCRIPTION
38
39=head1 METHODS
40
41=over 4
42
43=item B<meta>
44
7f436b8c 45=item B<version>
46
2243a22b 47=back
48
1a09d9cc 49=head1 AUTHORS
2243a22b 50
51Stevan Little E<lt>stevan@iinteractive.comE<gt>
52
1a09d9cc 53Yuval Kogman E<lt>nothingmuch@woobling.comE<gt>
54
2243a22b 55=head1 COPYRIGHT AND LICENSE
56
57Copyright 2006 by Infinity Interactive, Inc.
58
59L<http://www.iinteractive.com>
60
61This library is free software; you can redistribute it and/or modify
62it under the same terms as Perl itself.
63
64=cut