Class: Docgenerator::Wikimedia::Rubywiki
- Defined in:
- lib/wiki2doc/plugins/rubycode4wiki.rb
Overview
Define a new Ruby-Type
Constant Summary
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 Wikitext
#inputsource, #lineoffset, #log, #parent, #source, #wiki_inline_replacements
Instance Method Summary collapse
Methods inherited from Wikitext
#<<, #footnotes, help, #initialize, inline, #inline, #to_doc, #toc, #toccss, #wiki2doc, #wiki_bild, #wikidef
Methods included from Wiki_helper
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::Wikimedia::Wikitext
Instance Method Details
#wiki_macro(macro, argv) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/wiki2doc/plugins/rubycode4wiki.rb', line 25 def wiki_macro( macro, argv ) case macro when 'rubycode' Rubycode::CodeTest[argv] ? Rubycode::CodeTest[argv].code : "Code '#{argv}' not defined" when 'rubycode_with_evaluation' Rubycode::CodeTest[argv] ? Rubycode::CodeTest[argv].code_evaluation_lstlisting : "Code '#{argv}' not defined" when 'rubycode_in_tab' Rubycode::CodeTest[argv] ? Rubycode::CodeTest[argv].code_in_tab : "Code '#{argv}' not defined" else super end end |