class CodeRay::Encoders::YAML
Slow.
= YAML Encoder
def begin_group kind
def begin_group kind @data << [:begin_group, kind] end
def begin_line kind
def begin_line kind @data << [:begin_line, kind] end
def end_group kind
def end_group kind @data << [:end_group, kind] end
def end_line kind
def end_line kind @data << [:end_line, kind] end
def finish options
def finish options output ::YAML.dump(@data) end
def setup options
def setup options super @data = [] end
def text_token text, kind
def text_token text, kind @data << [text, kind] end