use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.64_01';
+our $VERSION = '0.86';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
|| confess "The metaclass ($metaclass) must be derived from Class::MOP::Class";
# make sure the custom metaclasses get loaded
- foreach my $class (grep {
- /^(attribute|method|instance)_metaclass/
- } keys %options) {
- Class::MOP::load_class($options{$class})
+ foreach my $key (grep { /_(?:meta)?class$/ } keys %options) {
+ unless ( ref( my $class = $options{$key} ) ) {
+ Class::MOP::load_class($class)
+ }
}
my $package = caller();
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2008 by Infinity Interactive, Inc.
+Copyright 2006-2009 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>