From 0d4ddc9f66eb3b4dc3f6e7cb191b605b348e8189 Mon Sep 17 00:00:00 2001 From: murphy Date: Sun, 16 Apr 2006 03:20:37 +0000 Subject: Re-indented everything. Sorry to break the blame chain. --- lib/coderay/encoders/yaml.rb | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'lib/coderay/encoders/yaml.rb') 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 -- cgit v1.2.1