Mercurial > hg > soundsoftware-site
view vendor/plugins/coderay-0.9.2/lib/coderay/encoders/yaml.rb @ 467:c1ecc16cf38e feature_36
addin/removing authors - not finished
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 22 Jun 2011 19:42:31 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
module CodeRay module Encoders # = YAML Encoder # # Slow. class YAML < Encoder register_for :yaml FILE_EXTENSION = 'yaml' protected def compile tokens, options require 'yaml' @out = tokens.to_a.to_yaml end end end end