Class: CucumberToHtml::Cell::Gherkin
- Inherits:
-
Cucumberhtml::Cell
- Object
- Trailblazer::Cell
- Cucumberhtml::Cell
- CucumberToHtml::Cell::Gherkin
- Defined in:
- app/concepts/cucumber_to_html/cell/gherkin.rb
Instance Method Summary collapse
Instance Method Details
#feature_list ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/concepts/cucumber_to_html/cell/gherkin.rb', line 13 def feature_list res = '<div class="tab-content" id="nav-tabContent">' sorted_feature_list.each_with_index do |feature, index| res += Feature.call(feature, active: index.zero?).call end res + '</div>' end |
#feature_menu_list ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/concepts/cucumber_to_html/cell/gherkin.rb', line 5 def res = '<div class="list-group" id="list-tab" role="tablist">' sorted_feature_list.each_with_index do |feature, index| res += Feature.call(feature, active: index.zero?).call(:feature_menu_item) end res + '</div>' end |