2 package Class::MOP::Module;
7 use Scalar::Util 'blessed';
10 $VERSION = eval $VERSION;
11 our $AUTHORITY = 'cpan:STEVAN';
13 use base 'Class::MOP::Package';
17 ${$self->get_package_symbol({ sigil => '$', type => 'SCALAR', name => 'VERSION' })};
22 ${$self->get_package_symbol({ sigil => '$', type => 'SCALAR', name => 'AUTHORITY' })};
29 ($self->version || ()),
30 ($self->authority || ()),
42 Class::MOP::Module - Module Meta Object
46 This is an abstraction of a Perl 5 module, it is a superclass of
47 L<Class::MOP::Class>. A module essentially a package with metadata,
48 in our case the version and authority.
56 Returns a metaclass for this package.
58 =item B<initialize ($package_name)>
60 This will initialize a Class::MOP::Module instance which represents
61 the module of C<$package_name>.
65 This is a read-only attribute which returns the C<$VERSION> of the
66 package for the given instance.
70 This is a read-only attribute which returns the C<$AUTHORITY> of the
71 package for the given instance.
75 This constructs a string of the name, version and authority.
81 Stevan Little E<lt>stevan@iinteractive.comE<gt>
83 =head1 COPYRIGHT AND LICENSE
85 Copyright 2006-2008 by Infinity Interactive, Inc.
87 L<http://www.iinteractive.com>
89 This library is free software; you can redistribute it and/or modify
90 it under the same terms as Perl itself.