Module: AsciiDoc::AsciiCharPlugins
- Included in:
- AsciiBlock
- Defined in:
- lib/asciidoc/asciicharplugins.rb
Constant Summary collapse
- CharPlugins =
[]
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.register(plugin) ⇒ Object
7 8 9 |
# File 'lib/asciidoc/asciicharplugins.rb', line 7 def self.register(plugin) CharPlugins << plugin end |
Instance Method Details
#order_plugins ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/asciidoc/asciicharplugins.rb', line 11 def order_plugins CharPlugins.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 |