From f32eb2da2272e298006021e235ea64455f7d35b5 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 27 Dec 2011 03:41:17 +0100 Subject: use coderay_path on all autoload calls --- lib/coderay/scanner.rb | 4 ++-- lib/coderay/tokens.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay') diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index f102163..907cf00 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -2,8 +2,8 @@ require 'strscan' module CodeRay - - autoload :WordList, 'coderay/helpers/word_list' + + autoload :WordList, coderay_path('helpers', 'word_list') # = Scanners # diff --git a/lib/coderay/tokens.rb b/lib/coderay/tokens.rb index 045cf4a..c747017 100644 --- a/lib/coderay/tokens.rb +++ b/lib/coderay/tokens.rb @@ -1,7 +1,7 @@ module CodeRay # GZip library for writing and reading token dumps. - autoload :GZip, 'coderay/helpers/gzip' + autoload :GZip, coderay_path('helpers', 'gzip') # = Tokens TODO: Rewrite! # -- cgit v1.2.1