Sha256: 3ab51173932af563e70ad130df21fa20ff29b1583f3aa6ab8159e10083b688b1

Contents?: true

Size: 581 Bytes

Versions: 42

Compression:

Stored size: 581 Bytes

Contents

<div class="multiline">
  <table style="">

    <thead>
      <tr>
        <% @step.table.first.each_with_index do |column,column_index| %>
          <th class="<%= (column_index + 1) % 2 == 0 ? 'even' : 'odd' %>"><%= h(column.strip) %></th>
        <% end %>
      </tr>
    </thead>

    <% @step.table[1..-1].each_with_index do |row,row_index| %>
      <tr class="<%= (row_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
        <% row.each_with_index do |column,column_index| %>
          <td><%= h(column.strip) %></td>
        <% end %>
      </tr>
    <% end %>
  </table>
</div>

Version data entries

42 entries across 42 versions & 5 rubygems

Version Path
yard-cucumber-2.1.6 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.5 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.4 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.3 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.2 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.1 lib/templates/default/feature/html/table.erb
yard-cucumber-2.1.0 lib/templates/default/feature/html/table.erb
yard-cucumber-2.0.3 lib/templates/default/feature/html/table.erb
yard-cucumber-2.0.2 lib/templates/default/feature/html/table.erb
yard-cucumber-2.0.1 lib/templates/default/feature/html/table.erb
yard-cucumber-2.0.0 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.8 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.7 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.6 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.5 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.4 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.3 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.2 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.1 lib/templates/default/feature/html/table.erb
cucumber-in-the-yard-1.7.0 lib/templates/default/feature/html/table.erb