class Frame

Attributes

cursor[R]
snapshot[R]

Public Class Methods

new(snapshot, cursor) click to toggle source
# File lib/asciinema/frame.rb, line 7
def initialize(snapshot, cursor)
  @snapshot = snapshot
  @cursor = cursor
end

Public Instance Methods

diff(other) click to toggle source
# File lib/asciinema/frame.rb, line 12
def diff(other)
  FrameDiff.new(snapshot_diff(other), cursor_diff(other))
end

Private Instance Methods

cursor_diff(other) click to toggle source
# File lib/asciinema/frame.rb, line 22
def cursor_diff(other)
  cursor.diff(other && other.cursor)
end
snapshot_diff(other) click to toggle source
# File lib/asciinema/frame.rb, line 18
def snapshot_diff(other)
  snapshot.diff(other && other.snapshot)
end