Class: Docgenerator::Creole::Placeholders::Creole_latex

Inherits:
Docgenerator::Creole::Placeholder show all
Defined in:
lib/docgenerator/creole/placeholder.rb

Overview

Placeholder for pure LaTeX-output. This content is ignored in HTML, Wiki… documents.

Idea for option: Parse the content by the wiki.

Pro: -allows the usage of <<ruby|… Cons: -unexpected conversions?

Instance Method Summary collapse

Methods inherited from Docgenerator::Creole::Placeholder

#<<, #close, #initialize, set_placeholder_key

Constructor Details

This class inherits a constructor from Docgenerator::Creole::Placeholder

Instance Method Details

#to_doc(target, options = {}) ⇒ Object

Return content only for latex



127
128
129
# File 'lib/docgenerator/creole/placeholder.rb', line 127

def to_doc( target, options = {})
  target == :latex ? @source.to_doc( target, options ) : ''
end