class Cursor
Attributes
visible[R]
x[R]
y[R]
Public Class Methods
new(x, y, visible)
click to toggle source
# File lib/asciinema/cursor.rb, line 5 def initialize(x, y, visible) @x, @y, @visible = x, y, visible end
Public Instance Methods
diff(other)
click to toggle source
# File lib/asciinema/cursor.rb, line 9 def diff(other) diff = {} diff[:x] = x if other && x != other.x || other.nil? diff[:y] = y if other && y != other.y || other.nil? diff[:visible] = visible if other && visible != other.visible || other.nil? diff end