Class: Docgenerator::Wikimedia::WikiCollectorHTML
- Defined in:
- lib/wiki2doc/wiki2docgenerator.rb
Overview
A little collector of "Plain-HTML".
Can be called in a Wiki with:
html{} here you can add plain HTML
<<<
Constant Summary
Constants inherited from Element
Constants included from Docgenerator
ATTR_LANG, CSS_BORDER, CSS_COLORS, CSS_WIDTH, DOCGENERATOR_DEFAULT_LOGGER, DOCGENERATOR_LOGGER, ENDTAG, HTML_ATTR_ALIGN, HTML_ATTR_ALL, HTML_ATTR_CORE, HTML_ATTR_EVENTS, HTML_ATTR_I18N, HTML_ATTR_VALIGN, VERSION
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#to_doc(target, options = {}) ⇒ Object
Return the content 'as is', but only for HTML.
Methods inherited from Element
#<<, #CR, #Cr, #[], add, add_attribute, add_attributes, add_context_output, add_creole_output, add_html_output, add_html_tag, add_id, add_latex_output, add_output, add_text_output, add_wiki_output, attributes, #cR, #content?, #cr, create, create_convert_to_code, #delete, element_ids, #element_ids, #empty?, get, get_attribute_list, has_no_content, #htmltag, #ids, inherited, #initialize, #insert, #insertafter, #insertbefore, #inspect, #inspect_creation_caller, #linebreak, overview, #prepare_tracing_info, #restrict_to, #texkeyval, #texoptional, #to_context, #to_creole, #to_html, #to_latex, #to_s, #to_text, #to_wiki, trace=
Methods included from Docgenerator
#set_option_defaults, set_option_defaults, trace_off, trace_on, trace_on?
Constructor Details
This class inherits a constructor from Docgenerator::Element
Instance Method Details
#to_doc(target, options = {}) ⇒ Object
Return the content 'as is', but only for HTML
1197 1198 1199 1200 1201 1202 1203 1204 1205 |
# File 'lib/wiki2doc/wiki2docgenerator.rb', line 1197 def to_doc( target, = {} ) case target when :html @content.join("\n") else '' end #~ return element(:onlyhtml,{},@htmlcode).restrict_to(:html).to_doc(target) end |