X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FConstructor.pm;h=2e848a75ed6ff061144dd08d6d944615dacac548;hb=98e392b90e66275efbacd8e33488e0b02b4960d4;hp=5820a02eeb5f90a07e649b24a7ee47e6b559753c;hpb=6e168432fa69bbe87ff0dd12e355a8b5d99a1a9c;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index 5820a02..2e848a7 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -1,5 +1,5 @@ package Mouse::Meta::Method::Constructor; -use Mouse::Util qw(get_code_ref); # enables strict and warnings +use Mouse::Util; # enables strict and warnings sub _inline_slot{ my(undef, $self_var, $attr_name) = @_; @@ -177,7 +177,7 @@ sub _generate_BUILDALL { my @code; for my $class ($metaclass->linearized_isa) { - if (get_code_ref($class, 'BUILD')) { + if (Mouse::Util::get_code_ref($class, 'BUILD')) { unshift @code, qq{${class}::BUILD(\$instance, \$args);}; } } @@ -193,7 +193,7 @@ Mouse::Meta::Method::Constructor - A Mouse method generator for constructors =head1 VERSION -This document describes Mouse version 0.40_05 +This document describes Mouse version 0.40_06 =head1 SEE ALSO