From: Lucas Bajolet Date: Fri, 29 Apr 2016 17:10:03 +0000 (-0400) Subject: lib/core: Added simple write char method to `Writer` X-Git-Url: http://nitlanguage.org lib/core: Added simple write char method to `Writer` Signed-off-by: Lucas Bajolet --- 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