diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-10-22 01:11:31 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-10-22 01:16:32 +0200 |
commit | b09e97b08c3c073e79159ff09f6a7e0779fcfd2e (patch) | |
tree | 03760e46268a69bdc67418afa34892a0f99040fc /lib/coderay/encoders.rb | |
parent | e93aae88985667189bb5b24ad0d5f54cb5fdba70 (diff) | |
download | coderay-b09e97b08c3c073e79159ff09f6a7e0779fcfd2e.tar.gz |
use autoload again
Diffstat (limited to 'lib/coderay/encoders.rb')
-rw-r--r-- | lib/coderay/encoders.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/coderay/encoders.rb b/lib/coderay/encoders.rb new file mode 100644 index 0000000..6599186 --- /dev/null +++ b/lib/coderay/encoders.rb @@ -0,0 +1,18 @@ +module CodeRay + + # This module holds the Encoder class and its subclasses. + # For example, the HTML encoder is named CodeRay::Encoders::HTML + # can be found in coderay/encoders/html. + # + # Encoders also provides methods and constants for the register + # mechanism and the [] method that returns the Encoder class + # belonging to the given format. + module Encoders + + extend PluginHost + plugin_path File.dirname(__FILE__), 'encoders' + + autoload :Encoder, CodeRay.coderay_path('encoders', 'encoder') + + end +end |