Class: Docgenerator::Creole::Rubycode::Code_in_tab

Inherits:
Placeholder
  • Object
show all
Defined in:
lib/docgenerator/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

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/docgenerator/creole/plugins/rubycode4creole.rb', line 101

def to_doc( target, options = {})
  codetest = Docgenerator::Rubycode::CodeTest.new(nil, @source.join )
  codetest.code_in_tab.to_doc( target, options )
end