Commit | Line | Data |
2243a22b |
1 | |
2 | package Class::MOP::Module; |
3 | |
4 | use strict; |
5 | use warnings; |
6 | |
7 | use Scalar::Util 'blessed'; |
8 | |
9 | our $VERSION = '0.01'; |
10 | |
11 | use base 'Class::MOP::Package'; |
12 | |
13 | # introspection |
14 | |
15 | sub meta { |
16 | require Class::MOP::Class; |
17 | Class::MOP::Class->initialize(blessed($_[0]) || $_[0]); |
18 | } |
19 | |
7f436b8c |
20 | sub version { |
21 | my $self = shift; |
58d75218 |
22 | ${$self->get_package_symbol('$VERSION')}; |
7f436b8c |
23 | } |
24 | |
2243a22b |
25 | 1; |
26 | |
27 | __END__ |
28 | |
29 | =pod |
30 | |
31 | =head1 NAME |
32 | |
33 | Class::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 | |
49 | =head1 AUTHOR |
50 | |
51 | Stevan Little E<lt>stevan@iinteractive.comE<gt> |
52 | |
53 | =head1 COPYRIGHT AND LICENSE |
54 | |
55 | Copyright 2006 by Infinity Interactive, Inc. |
56 | |
57 | L<http://www.iinteractive.com> |
58 | |
59 | This library is free software; you can redistribute it and/or modify |
60 | it under the same terms as Perl itself. |
61 | |
62 | =cut |