From fc509f3be65ff322ed460d4a5569952bb5973939 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Sun, 21 Aug 2011 15:58:07 +0200 Subject: fix YAML encoder for all Rubies (again!) --- lib/coderay/encoders/yaml.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay') diff --git a/lib/coderay/encoders/yaml.rb b/lib/coderay/encoders/yaml.rb index d22cd19..69d397c 100644 --- a/lib/coderay/encoders/yaml.rb +++ b/lib/coderay/encoders/yaml.rb @@ -1,3 +1,5 @@ +autoload :YAML, 'yaml' + module CodeRay module Encoders @@ -6,8 +8,6 @@ module Encoders # Slow. class YAML < Encoder - autoload :YAML, 'yaml' - register_for :yaml FILE_EXTENSION = 'yaml' -- cgit v1.2.1