From: Shawn M Moore Date: Sun, 9 Nov 2008 07:26:19 +0000 (+0000) Subject: new_object instead of construct_instance X-Git-Tag: 0.05~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1adb2feae5763e11428daacaf429ea993adcc3d9;p=gitmo%2FMooseX-Role-Parameterized.git new_object instead of construct_instance --- diff --git a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm index 9fd9b76..a7cbe8d 100644 --- a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm +++ b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm @@ -30,7 +30,7 @@ sub add_parameter { sub construct_parameters { my $self = shift; - $self->parameter_metaclass->construct_instance(@_); + $self->parameter_metaclass->new_object(@_); } sub generate_role { @@ -45,7 +45,7 @@ sub generate_role { my $metaclass = Moose::Meta::Class->create_anon_class( superclasses => ['MooseX::Role::Parameterized::Meta::Role::Parameterized'], ); - my $role = $metaclass->construct_instance( + my $role = $metaclass->new_object( parameters => $parameters, );