X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FAttribute.pm;h=775ac9f380ad61426a32996ddd4954778702cfc9;hb=b92a52994ffe9a3b871a5a5526ccd6b9c9d86187;hp=bd69defa6cf05998b36328955108c26c23f17fd7;hpb=5f9d7960c4bc46df9da25d5aefaf6610c9cbc20a;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Attribute.pm b/lib/Class/MOP/Attribute.pm index bd69def..775ac9f 100644 --- a/lib/Class/MOP/Attribute.pm +++ b/lib/Class/MOP/Attribute.pm @@ -9,7 +9,7 @@ use Class::MOP::Method::Accessor; use Carp 'confess'; use Scalar::Util 'blessed', 'weaken'; -our $VERSION = '0.78_01'; +our $VERSION = '0.80_01'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -331,7 +331,7 @@ sub accessor_metaclass { 'Class::MOP::Method::Accessor' } sub process_accessors { warn 'The process_accessors method has been made private.' . " The public version is deprecated and will be removed in a future release.\n"; - goto &_process_accessors; + shift->_process_accessors; } sub _process_accessors { @@ -501,7 +501,7 @@ This is a string value representing the expected key in an initialization hash. For instance, if we have an C value of C<-foo>, then the following code will Just Work. - MyClass->meta->construct_instance( -foo => 'Hello There' ); + MyClass->meta->new_object( -foo => 'Hello There' ); If an init_arg is not assigned, it will automatically use the attribute's name. If C is explicitly set to C, the