Module: ReverseMarkdown::Converters
- Defined in:
- lib/reverse_markdown/converters.rb,
lib/reverse_markdown/converters/a.rb,
lib/reverse_markdown/converters/h.rb,
lib/reverse_markdown/converters/p.rb,
lib/reverse_markdown/converters/br.rb,
lib/reverse_markdown/converters/em.rb,
lib/reverse_markdown/converters/hr.rb,
lib/reverse_markdown/converters/li.rb,
lib/reverse_markdown/converters/ol.rb,
lib/reverse_markdown/converters/td.rb,
lib/reverse_markdown/converters/tr.rb,
lib/reverse_markdown/converters/del.rb,
lib/reverse_markdown/converters/div.rb,
lib/reverse_markdown/converters/img.rb,
lib/reverse_markdown/converters/pre.rb,
lib/reverse_markdown/converters/base.rb,
lib/reverse_markdown/converters/code.rb,
lib/reverse_markdown/converters/drop.rb,
lib/reverse_markdown/converters/text.rb,
lib/reverse_markdown/converters/table.rb,
lib/reverse_markdown/converters/bypass.rb,
lib/reverse_markdown/converters/figure.rb,
lib/reverse_markdown/converters/iframe.rb,
lib/reverse_markdown/converters/ignore.rb,
lib/reverse_markdown/converters/strong.rb,
lib/reverse_markdown/converters/details.rb,
lib/reverse_markdown/converters/blockquote.rb,
lib/reverse_markdown/converters/figcaption.rb,
lib/reverse_markdown/converters/pass_through.rb
Defined Under Namespace
Classes: A, Base, Blockquote, Br, Bypass, Code, Del, Details, Div, Drop, Em, FigCaption, Figure, H, Hr, Iframe, Ignore, Img, Li, Ol, P, PassThrough, Pre, Strong, Table, Td, Text, Tr
Class Method Summary
collapse
Class Method Details
.lookup(tag_name) ⇒ Object
12
13
14
|
# File 'lib/reverse_markdown/converters.rb', line 12
def self.lookup(tag_name)
@@converters[tag_name.to_sym] or default_converter(tag_name)
end
|
.register(tag_name, converter) ⇒ Object
3
4
5
6
|
# File 'lib/reverse_markdown/converters.rb', line 3
def self.register(tag_name, converter)
@@converters ||= {}
@@converters[tag_name.to_sym] = converter
end
|
.unregister(tag_name) ⇒ Object
8
9
10
|
# File 'lib/reverse_markdown/converters.rb', line 8
def self.unregister(tag_name)
@@converters.delete(tag_name.to_sym)
end
|