summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-11 17:32:07 +0000
committermurphy <murphy@rubychan.de>2011-06-11 17:32:07 +0000
commit960881251ea1f30753cfa94574caa315f31c5874 (patch)
tree42b707d3aea06b836cdc2c5b1a5ed06e17b7a36e /lib/coderay/encoders
parentc499d778d87d233a22d0a3199594e36546841b62 (diff)
downloadcoderay-960881251ea1f30753cfa94574caa315f31c5874.tar.gz
cleanups
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r--lib/coderay/encoders/yaml.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/coderay/encoders/yaml.rb b/lib/coderay/encoders/yaml.rb
index 49cf86c..c12f8d0 100644
--- a/lib/coderay/encoders/yaml.rb
+++ b/lib/coderay/encoders/yaml.rb
@@ -1,15 +1,15 @@
module CodeRay
module Encoders
-
+
# = YAML Encoder
#
# Slow.
class YAML < Encoder
-
+
register_for :yaml
-
+
FILE_EXTENSION = 'yaml'
-
+
protected
def setup options
require 'yaml'
@@ -21,7 +21,6 @@ module Encoders
end
public
-
def text_token text, kind
@out << [text, kind]
end
@@ -43,6 +42,6 @@ module Encoders
end
end
-
+
end
end