summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-06-04 13:59:09 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2016-06-04 13:59:09 +0200
commit3e10d565f99025bdca003cc8fbd98d3260ae451a (patch)
tree85cd39a0101139a193b4d98ba8d0129a83884302 /lib/coderay/encoders.rb
parent0b19ccfa96e1c7e4999e6e2619ae0b266b54402a (diff)
parent4c7bedc3bf2392444f62e90b7b8dc91d1a2effbb (diff)
downloadcoderay-3e10d565f99025bdca003cc8fbd98d3260ae451a.tar.gz
Merge branch 'master' into possible-speedups
Diffstat (limited to 'lib/coderay/encoders.rb')
-rw-r--r--lib/coderay/encoders.rb18
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