Class: BioDSL::HtmlReport
- Inherits:
-
Object
- Object
- BioDSL::HtmlReport
- Includes:
- OptionsHelper
- Defined in:
- lib/BioDSL/html_report.rb
Overview
Class for creating HTML reports from an executed BioDSL pipeline.
Instance Method Summary collapse
-
#initialize(pipeline) ⇒ HtmlReport
constructor
Constructor for HtmlReport.
-
#to_html ⇒ Object
Render HTML output.
Constructor Details
#initialize(pipeline) ⇒ HtmlReport
Constructor for HtmlReport.
40 41 42 43 |
# File 'lib/BioDSL/html_report.rb', line 40 def initialize(pipeline) @pipeline = pipeline @commands = pipeline.commands end |
Instance Method Details
#to_html ⇒ Object
Render HTML output.
46 47 48 49 |
# File 'lib/BioDSL/html_report.rb', line 46 def to_html render('layout.html.haml', self, pipeline: @pipeline.to_s, commands: @commands) end |