summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders.rb
blob: 6599186e5de24c55be56b2ea1cbae9122d9c872b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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