Module: Malt::Format
- Extended by:
- Kernel
- Defined in:
- lib/malt/formats.rb,
lib/malt/formats/css.rb,
lib/malt/formats/erb.rb,
lib/malt/formats/pdf.rb,
lib/malt/formats/xml.rb,
lib/malt/formats/haml.rb,
lib/malt/formats/html.rb,
lib/malt/formats/less.rb,
lib/malt/formats/rdoc.rb,
lib/malt/formats/ruby.rb,
lib/malt/formats/sass.rb,
lib/malt/formats/scss.rb,
lib/malt/formats/text.rb,
lib/malt/formats/yaml.rb,
lib/malt/formats/latex.rb,
lib/malt/formats/rhtml.rb,
lib/malt/formats/coffee.rb,
lib/malt/formats/liquid.rb,
lib/malt/formats/radius.rb,
lib/malt/formats/ragtag.rb,
lib/malt/formats/rbhtml.rb,
lib/malt/formats/string.rb,
lib/malt/formats/tenjin.rb,
lib/malt/formats/builder.rb,
lib/malt/formats/textile.rb,
lib/malt/formats/abstract.rb,
lib/malt/formats/markdown.rb,
lib/malt/formats/mustache.rb,
lib/malt/formats/mediawiki.rb,
lib/malt/formats/javascript.rb,
lib/malt/formats/abstract_template.rb
Defined Under Namespace
Classes: Abstract, AbstractTemplate, Builder, CSS, Coffee, Erb, HTML, Haml, Javascript, LESS, Latex, Liquid, Markdown, MediaWiki, Mustache, PDF, RBHTML, RDoc, RHTML, Radius, RagTag, Ruby, SCSS, Sass, String, Tenjin, Text, Textile, UnsupportedConversion, XML, YAML
Class Method Summary
collapse
Class Method Details
.register(malt_class, *exts) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/malt/formats/abstract.rb', line 11
def self.register(malt_class, *exts)
exts.each do |ext|
type = ext_to_type(ext)
registry[type] = malt_class
end
end
|
19
20
21
|
# File 'lib/malt/formats/abstract.rb', line 19
def self.registry
@registry ||= {}
end
|