Class: Docgenerator::Creole::Plugins::Creole_footnote_group
- Inherits:
-
Creole_inclusion_and_plugin
- Object
- Creole_inclusion_and_plugin
- Docgenerator::Creole::Plugins::Creole_footnote_group
- Defined in:
- lib/docgenerator/creole/plugins.rb
Overview
Collection of footnotes.
Makes sense for HTML-output.
For LaTeX the support of bigfoot/manyfoot… may be an idea.
Instance Attribute Summary
Attributes inherited from Creole_inclusion_and_plugin
Instance Method Summary collapse
-
#initialize(inclusionname, description, options, wiki) ⇒ Creole_footnote_group
constructor
A new instance of Creole_footnote_group.
-
#to_doc(target, options = {}) ⇒ Object
Call Docgenerator::Footnotegroup#to_doc.
Methods inherited from Creole_inclusion_and_plugin
set_inclusions_key, set_plugin_key
Constructor Details
#initialize(inclusionname, description, options, wiki) ⇒ Creole_footnote_group
Returns a new instance of Creole_footnote_group.
62 63 64 65 66 67 |
# File 'lib/docgenerator/creole/plugins.rb', line 62 def initialize( inclusionname, description, , wiki ) super description = Footnotegroup::DEFAULTGROUPID unless description @footnotesgroup = wiki.footnotegroups[description] wiki.log.error("Footnotesgroup #{description.inspect} not found") if ! @footnotesgroup and wiki.log.error? end |
Instance Method Details
#to_doc(target, options = {}) ⇒ Object
Call Docgenerator::Footnotegroup#to_doc
71 72 73 74 75 76 77 |
# File 'lib/docgenerator/creole/plugins.rb', line 71 def to_doc(target, = {}) #remove options for Docgenerator::Footnotegroup = .dup .delete(:plugins) .delete(:inclusions) @footnotesgroup.to_doc(target, ) end |