Module Undress

  1. lib/undress/textile.rb
  2. lib/undress/grammar.rb
  3. lib/undress.rb
  4. show all

Methods

public class

  1. add_markup

Classes and Modules

Class Undress::Grammar
Class Undress::Textile

Public class methods

add_markup (name, grammar)

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.

[show source]
# File lib/undress.rb, line 18
  def self.add_markup(name, grammar)
    Document.add_markup(name, grammar)
  end