Sha256: fd07d3fd179a4458986d261794c34a32ec68530cd6760a8875aee82ba0736118

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

<table>
  <tr>
    <th colspan="2">Daru::Vector(<%= size %>)<%= ':category' if category? %></th>
  </tr>
  <% if name %>
    <tr>
        <th> </th>
        <th><%= name %></th>
    </tr>
  <% end %>

  <% @index.each_with_index.first(threshold).each do |index, pos| %>
    <tr>
      <td><%= index %></td>
      <td><%= self.at(pos) %></td>
    </tr>
  <% end %>

  <% if size > threshold %>
    <% last_index = @index.size-1 %>
    <tr><td>...</td><td>...</td></tr>
    <tr>
      <td><%= last_index %></td>
      <td><%= self.at last_index %></td>
    </tr>
  <% end %>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
daru-0.1.5 lib/daru/iruby/templates/vector.html.erb
daru-0.1.4.1 lib/daru/iruby/templates/vector.html.erb
daru-0.1.4 lib/daru/iruby/templates/vector.html.erb