Class: Docgenerator::Creole::Plugins::Creole_short_latex
- Inherits:
-
Creole_inclusion_and_plugin
- Object
- Creole_inclusion_and_plugin
- Docgenerator::Creole::Plugins::Creole_short_latex
- Defined in:
- lib/docgenerator/creole/plugins.rb
Overview
Some short latex
Usage:
<<latex|code>>
Note: There is also a placeholder for larger latex:
<<<latex
content
>>>
Instance Attribute Summary
Attributes inherited from Creole_inclusion_and_plugin
Instance Method Summary collapse
-
#initialize(inclusionname, description, options, wiki) ⇒ Creole_short_latex
constructor
A new instance of Creole_short_latex.
-
#to_doc(target, options = {}) ⇒ Object
Return content only for latex.
Methods inherited from Creole_inclusion_and_plugin
set_inclusions_key, set_plugin_key
Constructor Details
#initialize(inclusionname, description, options, wiki) ⇒ Creole_short_latex
Returns a new instance of Creole_short_latex.
149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/docgenerator/creole/plugins.rb', line 149 def initialize( inclusionname, description, , wiki ) super .each{|option| #~ case option #~ else @wiki.log.warn("latex with unknown option #{option.inspect} not found") if @wiki.log.warn? #~ end } @source = description end |
Instance Method Details
#to_doc(target, options = {}) ⇒ Object
Return content only for latex
161 162 163 |
# File 'lib/docgenerator/creole/plugins.rb', line 161 def to_doc( target, = {}) target == :latex ? @source.to_doc( target, ) : '' end |