use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
our $AUTHORITY = 'cpan:STEVAN';
use Class::MOP;
}
else {
$metaclass = shift;
+ #make sure the custom metaclass gets loaded
Class::MOP::load_class($metaclass);
($metaclass->isa('Class::MOP::Class'))
|| confess "The metaclass ($metaclass) must be derived from Class::MOP::Class";
}
my %options = @_;
+ #make sure the custom metaclasses get loaded
+ map{ Class::MOP::load_class($options{$_}) }
+ grep{ /^(attribute|method|instance)_metaclass/ } keys %options;
my $package = caller();
# create a meta object so we can install &meta
=head1 COPYRIGHT AND LICENSE
-Copyright 2006, 2007 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>