X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FObject.pm;h=f4a54e08688f0adb5a0aa11b022078794bbc76cd;hb=097eeb20923df544ba145c1e61bc773d7df5857a;hp=49ae865f3305503b4e6866a29a117cdd6adc6dd8;hpb=2367814a108bbb85efbf76b57fc58bf464d68455;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Object.pm b/lib/Class/MOP/Object.pm index 49ae865..f4a54e0 100644 --- a/lib/Class/MOP/Object.pm +++ b/lib/Class/MOP/Object.pm @@ -6,7 +6,8 @@ use warnings; use Scalar::Util 'blessed'; -our $VERSION = '0.02'; +our $VERSION = '0.77_01'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; # introspection @@ -16,6 +17,10 @@ sub meta { Class::MOP::Class->initialize(blessed($_[0]) || $_[0]); } +sub _new { + shift->meta->new_object(@_); +} + # RANT: # Cmon, how many times have you written # the following code while debugging: @@ -28,7 +33,7 @@ sub meta { sub dump { my $self = shift; require Data::Dumper; - $Data::Dumper::Maxdepth = shift || 1; + local $Data::Dumper::Maxdepth = shift || 1; Data::Dumper::Dumper $self; } @@ -44,7 +49,7 @@ Class::MOP::Object - Object Meta Object =head1 DESCRIPTION -This class is basically a stub, it provides no functionality at all, +This class is basically a stub, it provides almost no functionality at all, and really just exists to make the Class::MOP metamodel complete. ...... @@ -93,7 +98,7 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006, 2007 by Infinity Interactive, Inc. +Copyright 2006-2008 by Infinity Interactive, Inc. L