Module: Malt::Engine

Extended by:
Kernel
Defined in:
lib/malt/engines.rb,
lib/malt/engines/erb.rb,
lib/malt/engines/haml.rb,
lib/malt/engines/ruby.rb,
lib/malt/engines/sass.rb,
lib/malt/engines/rdoc.rb,
lib/malt/engines/less.rb,
lib/malt/engines/creole.rb,
lib/malt/engines/ragtag.rb,
lib/malt/engines/tenjin.rb,
lib/malt/engines/coffee.rb,
lib/malt/engines/liquid.rb,
lib/malt/engines/string.rb,
lib/malt/engines/erubis.rb,
lib/malt/engines/radius.rb,
lib/malt/engines/maruku.rb,
lib/malt/engines/erector.rb,
lib/malt/engines/builder.rb,
lib/malt/engines/markaby.rb,
lib/malt/engines/kramdown.rb,
lib/malt/engines/abstract.rb,
lib/malt/engines/nokogiri.rb,
lib/malt/engines/mustache.rb,
lib/malt/engines/redcloth.rb,
lib/malt/engines/wikicloth.rb,
lib/malt/engines/redcarpet.rb,
lib/malt/engines/bluecloth.rb,
lib/malt/engines/rdiscount.rb

Defined Under Namespace

Classes: Abstract, BlueCloth, Builder, Coffee, Creole, Erb, Erector, Erubis, Haml, Kramdown, Less, Liquid, Markaby, Maruku, Mustache, Nokogiri, RDiscount, RDoc, Radius, RagTag, RedCloth, Redcarpet, Ruby, Sass, String, Tenjin, WikiCloth

Class Method Summary collapse

Class Method Details

.defaultsObject


26
27
28
# File 'lib/malt/engines/abstract.rb', line 26

def self.defaults
  @defaults ||= {}
end

.register(malt_class, *exts) ⇒ Object


11
12
13
14
15
16
17
18
# File 'lib/malt/engines/abstract.rb', line 11

def self.register(malt_class, *exts)
  exts.each do |ext|
    type = ext_to_type(ext)
    registry[type] ||= []
    registry[type] << malt_class
    registry[type].uniq!
  end
end

.registryObject


21
22
23
# File 'lib/malt/engines/abstract.rb', line 21

def self.registry
  @registry ||= {}
end