summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-10-22 01:11:31 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-10-22 01:16:32 +0200
commitb09e97b08c3c073e79159ff09f6a7e0779fcfd2e (patch)
tree03760e46268a69bdc67418afa34892a0f99040fc /lib/coderay/scanners.rb
parente93aae88985667189bb5b24ad0d5f54cb5fdba70 (diff)
downloadcoderay-b09e97b08c3c073e79159ff09f6a7e0779fcfd2e.tar.gz
use autoload again
Diffstat (limited to 'lib/coderay/scanners.rb')
-rw-r--r--lib/coderay/scanners.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/coderay/scanners.rb b/lib/coderay/scanners.rb
new file mode 100644
index 0000000..f824f50
--- /dev/null
+++ b/lib/coderay/scanners.rb
@@ -0,0 +1,23 @@
+require 'strscan'
+
+module CodeRay
+
+ autoload :WordList, coderay_path('helpers', 'word_list')
+
+ # = Scanners
+ #
+ # This module holds the Scanner class and its subclasses.
+ # For example, the Ruby scanner is named CodeRay::Scanners::Ruby
+ # can be found in coderay/scanners/ruby.
+ #
+ # Scanner also provides methods and constants for the register
+ # mechanism and the [] method that returns the Scanner class
+ # belonging to the given lang.
+ #
+ # See PluginHost.
+ module Scanners
+ extend PluginHost
+ plugin_path File.dirname(__FILE__), 'scanners'
+ end
+
+end