Class: Snapshot
Instance Attribute Summary
Attributes inherited from Grid
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Grid
#as_json, #crop, #diff, #initialize
Constructor Details
This class inherits a constructor from Grid
Class Method Details
Instance Method Details
#thumbnail(w, h) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/asciinema/snapshot.rb', line 16 def thumbnail(w, h) x = 0 y = height - h - trailing_empty_lines y = 0 if y < 0 crop(x, y, w, h) end |