Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
- redef fun write(s: String)
+ redef fun write(s: Text)
interface OStream
super IOS
# write a string
interface OStream
super IOS
# write a string
- fun write(s: String) is abstract
+ fun write(s: Text) is abstract
# Can the stream be used to write
fun is_writable: Bool is abstract
# Can the stream be used to write
fun is_writable: Bool is abstract
super Streamable
redef fun write_to(stream) do stream.write(self)
end
super Streamable
redef fun write_to(stream) do stream.write(self)
end
private var content = new Array[String]
redef fun to_s do return content.to_s
redef fun is_writable do return true
private var content = new Array[String]
redef fun to_s do return content.to_s
redef fun is_writable do return true
- redef fun write(str) do content.add(str)
+ redef fun write(str) do content.add(str.to_s)
redef fun write(s)
do
if connection != null then
redef fun write(s)
do
if connection != null then
+ connection.write(s.to_s)