From d78d6a57772a00976c44254dfee1ab1e26751e2c Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Wed, 4 Jun 2014 16:38:26 -0400 Subject: [PATCH] lib/standard/ropes: Bases of RopeString class. Signed-off-by: Lucas Bajolet --- lib/standard/ropes.nit | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + -- 1.7.9.5