Module: Brandish::Processors

Defined in:
lib/brandish/processors.rb,
lib/brandish/processors/all.rb,
lib/brandish/processors/html.rb,
lib/brandish/processors/latex.rb,
lib/brandish/processors/all/if.rb,
lib/brandish/processors/common.rb,
lib/brandish/processors/all/embed.rb,
lib/brandish/processors/all/import.rb,
lib/brandish/processors/all/verify.rb,
lib/brandish/processors/html/group.rb,
lib/brandish/processors/html/style.rb,
lib/brandish/processors/all/comment.rb,
lib/brandish/processors/all/literal.rb,
lib/brandish/processors/html/header.rb,
lib/brandish/processors/html/markup.rb,
lib/brandish/processors/html/output.rb,
lib/brandish/processors/html/script.rb,
lib/brandish/processors/common/asset.rb,
lib/brandish/processors/common/group.rb,
lib/brandish/processors/latex/markup.rb,
lib/brandish/processors/common/header.rb,
lib/brandish/processors/common/markup.rb,
lib/brandish/processors/common/output.rb,
lib/brandish/processors/html/style/sass.rb,
lib/brandish/processors/html/script/babel.rb,
lib/brandish/processors/common/asset/paths.rb,
lib/brandish/processors/html/script/coffee.rb,
lib/brandish/processors/html/style/vanilla.rb,
lib/brandish/processors/html/script/vanilla.rb,
lib/brandish/processors/html/output/document.rb,
lib/brandish/processors/html/style/highlight.rb

Overview

All of the available processors provided by Brandish by default are defined under this module. Under this module, there are a set of modules, all pertaining to either a format, All, or Common. All processors are provided for all documents, regardless of format; Common processors are always abstract, and define a set of processors that are required to be implemented for all formats. If a format does not provide a Common processor, it is considered a bug.

Defined Under Namespace

Modules: All, Common, HTML, Latex

Class Method Summary collapse

Class Method Details

.format_modules<Module>

All of the format modules under the Brandish::Processors module. This is essentially all modules that aren't named All or Common.

Returns:

  • (<Module>)


22
23
24
# File 'lib/brandish/processors.rb', line 22

def self.format_modules
  (constants - [:All, :Common]).map { |c| Processors.const_get(c) }
end