Module: Undress

Defined in:
lib/undress.rb,
lib/undress/grammar.rb,
lib/undress/textile.rb

Defined Under Namespace

Classes: Document, Grammar, Textile

Class Method Summary collapse

Class Method Details

.add_markup(name, grammar) ⇒ Object

Register a markup language. The name will become the method used to convert HTML to this markup language: for example registering the name :textile gives you Undress(code).to_textile, registering :markdown would give you Undress(code).to_markdown, etc.



18
19
20
# File 'lib/undress.rb', line 18

def self.add_markup(name, grammar)
  Document.add_markup(name, grammar)
end