use Carp 'confess';
use Scalar::Util 'blessed';
-our $VERSION = '0.89';
+our $VERSION = '1.05';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
use base 'Class::MOP::Package';
-sub _new{
+sub _new {
my $class = shift;
return Class::MOP::Class->initialize($class)->new_object(@_)
- if $class ne __PACKAGE__;
+ if $class ne __PACKAGE__;
my $params = @_ == 1 ? $_[0] : {@_};
return bless {
+
# from Class::MOP::Package
package => $params->{package},
namespace => \undef,
|| confess "creation of $package_name failed: invalid package name";
no strict 'refs';
- scalar %{$package_name . '::'}; # touch the stash
- ${$package_name . '::VERSION'} = $version if defined $version;
- ${$package_name . '::AUTHORITY'} = $authority if defined $authority;
+ scalar %{ $package_name . '::' }; # touch the stash
+ ${ $package_name . '::VERSION' } = $version if defined $version;
+ ${ $package_name . '::AUTHORITY' } = $authority if defined $authority;
return;
}
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2009 by Infinity Interactive, Inc.
+Copyright 2006-2010 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>