From 7cbcab5539646566c1ca21ca9a2587c91335c0c5 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Fri, 29 Apr 2016 13:10:03 -0400 Subject: [PATCH] lib/core: Added simple write char method to `Writer` Signed-off-by: Lucas Bajolet --- lib/core/stream.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/stream.nit b/lib/core/stream.nit index 8a75543..5ad8d75 100644 --- a/lib/core/stream.nit +++ b/lib/core/stream.nit @@ -417,6 +417,9 @@ abstract class Writer # Write a single byte fun write_byte(value: Byte) is abstract + # Writes a single char + fun write_char(c: Char) do write(c.to_s) + # Can the stream be used to write fun is_writable: Bool is abstract end -- 1.7.9.5