Class: Docgenerator::Creole::Plugins::Creole_short_latex

Inherits:
Creole_inclusion_and_plugin show all
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

#wiki

Instance Method Summary collapse

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, options, wiki )
  super
  options.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, options = {})
  target == :latex ? @source.to_doc( target, options ) : ''
end