Module: AsciiDoc::AsciiPlugins

Included in:
AsciiDocument
Defined in:
lib/asciidoc/asciiplugins.rb

Constant Summary collapse

Plugins =
[]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.register(plugin) ⇒ Object



7
8
9
# File 'lib/asciidoc/asciiplugins.rb', line 7

def self.register(plugin)
  Plugins << plugin
end

Instance Method Details

#order_pluginsObject



11
12
13
14
15
16
17
# File 'lib/asciidoc/asciiplugins.rb', line 11

def order_plugins
  Plugins.sort! do |x,y| 
    x_val = x.has_key?(:order) ? x[:order] : 99999999999
    y_val = y.has_key?(:order) ? y[:order] : 99999999999
    x_val <=> y_val
  end
end