diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 18:14:44 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 18:14:44 +0100 |
commit | ae94f2f266389a7cf50618a701bc080dea007bf5 (patch) | |
tree | 39c9bd17791e89d43c74c7d7f772c0de0f98f0b6 /lib/coderay/encoders.rb | |
parent | 3c92a655c48f7f94c5076712f1950378968d6eb8 (diff) | |
parent | 50ddfcc14d435b8f667249b9e90603f113b79282 (diff) | |
download | coderay-ae94f2f266389a7cf50618a701bc080dea007bf5.tar.gz |
Merge branch 'master' into dsl
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 |