use strict;
use warnings;
-use Carp 'confess';
+use Carp 'confess';
+use Scalar::Util 'blessed';
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use Class::MOP;
# since metaclass instances are
# singletons, this is not really a
# big deal anyway.
- $metaclass->initialize($_[0] => %options)
+ $metaclass->initialize((blessed($_[0]) || $_[0]) => %options)
});
}
=head1 NAME
-metaclass - a pragma for installing using Class::MOP metaclasses
+metaclass - a pragma for installing and using Class::MOP metaclasses
=head1 SYNOPSIS