From: Lucas Bajolet Date: Wed, 4 Jun 2014 20:38:26 +0000 (-0400) Subject: lib/standard/ropes: Bases of RopeString class. X-Git-Tag: v0.6.6~43^2~26 X-Git-Url: http://nitlanguage.org lib/standard/ropes: Bases of RopeString class. Signed-off-by: Lucas Bajolet --- diff --git a/lib/standard/ropes.nit b/lib/standard/ropes.nit index ea7237d..fc74932 100644 --- a/lib/standard/ropes.nit +++ b/lib/standard/ropes.nit @@ -76,3 +76,12 @@ abstract class Rope redef fun length do return root.length end +# Rope that cannot be modified +class RopeString + super Rope + super String + + redef fun to_s do return self + +end +