Permalink
Browse files

Moose immutable

  • Loading branch information...
1 parent 6551982 commit 894a8ac7ab93dc715bc6ff32d00355692df06c8b Hakim Cassimally committed May 21, 2011
@@ -114,4 +114,4 @@ sub length {
return sum $self->map_pieces( sub { $_->length } );
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;
@@ -49,4 +49,4 @@ sub split_at {
}
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;
@@ -35,4 +35,4 @@ sub whole_piece {
);
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;

0 comments on commit 894a8ac

Please sign in to comment.