From: tla Date: Mon, 16 May 2011 13:24:32 +0000 (+0200) Subject: use Moose for empty subclasses too X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=021bdbaca8b4f5e0871376f58ee72aac279b705a;p=scpubgit%2Fstemmatology.git use Moose for empty subclasses too --- diff --git a/lib/Text/Tradition/Collation/Reading.pm b/lib/Text/Tradition/Collation/Reading.pm index 86b2869..8334564 100644 --- a/lib/Text/Tradition/Collation/Reading.pm +++ b/lib/Text/Tradition/Collation/Reading.pm @@ -1,8 +1,8 @@ package Text::Tradition::Collation::Reading; -use Moose; use Moose::Util::TypeConstraints; use MooseX::NonMoose; +use Moose; extends 'Graph::Easy::Node'; @@ -119,15 +119,28 @@ __PACKAGE__->meta->make_immutable; # when overriding nodes, we also need ::Anon package Text::Tradition::Collation::Reading::Anon; +use Moose; +use MooseX::NonMoose; +extends 'Text::Tradition::Collation::Reading'; +extends 'Graph::Easy::Node::Anon'; +no Moose; +__PACKAGE__->meta->make_immutable; -use base qw/Text::Tradition::Collation::Reading/; -use base qw/Graph::Easy::Node::Anon/; +1; +# use base qw/Text::Tradition::Collation::Reading/; +# use base qw/Graph::Easy::Node::Anon/; ###################################################### # and :::Empty package Text::Tradition::Collation::Reading::Empty; +use Moose; +use MooseX::NonMoose; +extends 'Graph::Easy::Node::Empty'; +no Moose; +__PACKAGE__->meta->make_immutable; -use base qw/Text::Tradition::Collation::Reading/; +1; +# use base qw/Text::Tradition::Collation::Reading/; ######################################################