Class: CucumberTimingPresenter::UnusedStepsHtmlPresenter
- Inherits:
-
UsageRecordHtmlPresenter
- Object
- UsageRecordHtmlPresenter
- CucumberTimingPresenter::UnusedStepsHtmlPresenter
- Defined in:
- lib/cucumber_timing_presenter/unused_steps_html_presenter.rb
Instance Method Summary collapse
- #generate_html(unused_steps) ⇒ Object
-
#initialize(unused_steps) ⇒ UnusedStepsHtmlPresenter
constructor
A new instance of UnusedStepsHtmlPresenter.
Methods inherited from UsageRecordHtmlPresenter
#format_all, #format_unused_steps, #format_usage
Constructor Details
#initialize(unused_steps) ⇒ UnusedStepsHtmlPresenter
Returns a new instance of UnusedStepsHtmlPresenter.
3 4 5 |
# File 'lib/cucumber_timing_presenter/unused_steps_html_presenter.rb', line 3 def initialize unused_steps generate_html unused_steps end |
Instance Method Details
#generate_html(unused_steps) ⇒ Object
7 8 9 10 11 |
# File 'lib/cucumber_timing_presenter/unused_steps_html_presenter.rb', line 7 def generate_html unused_steps html = HtmlTemplate.new Configuration.unused_steps_template_path html.replace "PP_UNUSED_STEPS", format_unused_steps(unused_steps.all) html.output "unused_steps.html" end |