Class: Docgenerator::Creole::Plugins::Creole_footnote_group

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

#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_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, options, 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, options = {})
  #remove options for Docgenerator::Footnotegroup
  l_options = options.dup
  l_options.delete(:plugins)
  l_options.delete(:inclusions)
  @footnotesgroup.to_doc(target, l_options)
end