Mercurial > hg > soundsoftware-site
comparison vendor/gems/coderay-0.9.7/lib/coderay/encoders/yaml.rb @ 210:0579821a129a
Update to Redmine trunk rev 4802
author | Chris Cannam |
---|---|
date | Tue, 08 Feb 2011 13:51:46 +0000 |
parents | vendor/plugins/coderay-0.9.2/lib/coderay/encoders/yaml.rb@513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
128:07fa8a8b56a8 | 210:0579821a129a |
---|---|
1 module CodeRay | |
2 module Encoders | |
3 | |
4 # = YAML Encoder | |
5 # | |
6 # Slow. | |
7 class YAML < Encoder | |
8 | |
9 register_for :yaml | |
10 | |
11 FILE_EXTENSION = 'yaml' | |
12 | |
13 protected | |
14 def compile tokens, options | |
15 require 'yaml' | |
16 @out = tokens.to_a.to_yaml | |
17 end | |
18 | |
19 end | |
20 | |
21 end | |
22 end |