Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moose immutable

  • Loading branch information...
commit 894a8ac7ab93dc715bc6ff32d00355692df06c8b 1 parent 6551982
Hakim Cassimally authored
View
2  scratch/perl/text-piecetable/lib/Text/PieceTable.pm
@@ -114,4 +114,4 @@ sub length {
return sum $self->map_pieces( sub { $_->length } );
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;
View
2  scratch/perl/text-piecetable/lib/Text/PieceTable/Piece.pm
@@ -49,4 +49,4 @@ sub split_at {
}
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;
View
2  scratch/perl/text-piecetable/lib/Text/PieceTable/Source.pm
@@ -35,4 +35,4 @@ sub whole_piece {
);
}
-no Moose; 1;
+no Moose; __PACKAGE__->meta->make_immutable; 1;
Please sign in to comment.
Something went wrong with that request. Please try again.