Skip to content

Commit

Permalink
improve vector inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
v0dro committed Jun 12, 2015
1 parent 66536be commit af00d6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/daru/vector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,12 @@ def to_html threshold=30

if num > threshold
html += '<tr><td>...</td><td>...</td></tr>'

last_index = @index.to_a.last
html += '<tr>' +
'<td>' + last_index.to_s + '</td>' +
'<td>' + self[last_index].to_s + '</td>' +
'</tr>'
break
end
end
Expand Down

0 comments on commit af00d6b

Please sign in to comment.