summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-12-27 03:41:17 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2011-12-27 03:41:17 +0100
commitf32eb2da2272e298006021e235ea64455f7d35b5 (patch)
tree9f7852005e0586e6a81361a288cfa6bc5e4d7fbc
parent964397d4bfbcbbd27d51e252faf25e291429e7d9 (diff)
downloadcoderay-f32eb2da2272e298006021e235ea64455f7d35b5.tar.gz
use coderay_path on all autoload calls
-rw-r--r--lib/coderay/scanner.rb4
-rw-r--r--lib/coderay/tokens.rb2
2 files changed, 3 insertions, 3 deletions
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!
#