Class: Docgenerator::Creole::Rubycode::Code_in_tab
- Inherits:
-
Placeholder
- Object
- Placeholder
- Docgenerator::Creole::Rubycode::Code_in_tab
- Defined in:
- lib/creole/plugins/rubycode4creole.rb
Overview
Build a table. Each row corresponds with a source code line. You get source code, result and output of the code line.
Instance Method Summary collapse
-
#to_doc(target, options = {}) ⇒ Object
Return content in a verbatim environment.
Methods inherited from Placeholder
#<<, #close, #initialize, set_placeholder_key
Constructor Details
This class inherits a constructor from Docgenerator::Creole::Placeholder
Instance Method Details
#to_doc(target, options = {}) ⇒ Object
Return content in a verbatim environment
101 102 103 104 |
# File 'lib/creole/plugins/rubycode4creole.rb', line 101 def to_doc( target, = {}) codetest = Docgenerator::Rubycode::CodeTest.new(nil, @source.join ) codetest.code_in_tab.to_doc( target, ) end |