X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FObject.pm;h=689308c37dc1577c725b0302e649d8fe5daf1a0e;hb=3a683b397673ee5ed7788873ff77f0db92eda011;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..689308c 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.73'; +$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