Created
November 11, 2010 05:46
-
-
Save rossabaker/672075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit def writesToWriterToCharRenderable(writesToWriter: { def writeTo(writer: Writer): Unit }) = | |
new CharRenderable { | |
def writeTo(out: OutputStream, cs: Charset) { writeTo(new OutputStreamWriter(out, cs)) } | |
def writeTo(writer: Writer) { writesToWriter.writeTo(writer) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment