<% ["Address","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].each do |i| %> <% end %> <% @data.in_groups_of(16).each_with_index do |row, rindex| %> <% row.each_with_index do |hex, hindex| %> <% end %> <% end %>
<%=i%>
<%=(rindex*16).to_s(16).upcase.rjust(6, "0")%><%=hex.to_s.upcase.rjust(2, "0")%>