diff options
author | murphy <murphy@rubychan.de> | 2006-04-16 03:20:37 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-04-16 03:20:37 +0000 |
commit | 0d4ddc9f66eb3b4dc3f6e7cb191b605b348e8189 (patch) | |
tree | 6ade5b6d36d559b919a39f55002cde3c3779bc67 /lib/coderay/encoders/yaml.rb | |
parent | ff9cbcf8c58e81bcee2e961e8b2033e6e336c6e9 (diff) | |
download | coderay-0d4ddc9f66eb3b4dc3f6e7cb191b605b348e8189.tar.gz |
Re-indented everything. Sorry to break the blame chain.
Diffstat (limited to 'lib/coderay/encoders/yaml.rb')
-rw-r--r-- | lib/coderay/encoders/yaml.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/coderay/encoders/yaml.rb b/lib/coderay/encoders/yaml.rb index 4e2b7a1..b842647 100644 --- a/lib/coderay/encoders/yaml.rb +++ b/lib/coderay/encoders/yaml.rb @@ -1,19 +1,22 @@ module CodeRay
- module Encoders
+module Encoders
- class YAML < Encoder
+ # = YAML Encoder
+ #
+ # Slow.
+ class YAML < Encoder
- register_for :yaml
+ register_for :yaml
- FILE_EXTENSION = 'yaml'
-
- protected
- def compile tokens, options
- require 'yaml'
- @out = tokens.to_a.to_yaml
- end
+ FILE_EXTENSION = 'yaml'
+ protected
+ def compile tokens, options
+ require 'yaml'
+ @out = tokens.to_a.to_yaml
end
end
+
+end
end
|