class CodeRay::Encoders::Text
Default: empty String
A separator string to join the tokens.
=== :separator
== Options
Alias: plain
, plaintext
code string if no tokens were removed.
Concats the tokens into a single string, resulting in the original
def setup options
def setup options super @first = true @sep = options[:separator] end
def text_token text, kind
def text_token text, kind super if @first @first = false else @out << @sep end if @sep end