Mercurial > hg > soundsoftware-site
comparison vendor/plugins/coderay-0.9.2/lib/coderay/encoders/yaml.rb @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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 |