Class: Frame
- Inherits:
-
Object
- Object
- Frame
- Defined in:
- lib/asciinema/frame.rb
Instance Attribute Summary collapse
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
Instance Method Summary collapse
- #diff(other) ⇒ Object
-
#initialize(snapshot, cursor) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(snapshot, cursor) ⇒ Frame
Returns a new instance of Frame.
7 8 9 10 |
# File 'lib/asciinema/frame.rb', line 7 def initialize(snapshot, cursor) @snapshot = snapshot @cursor = cursor end |
Instance Attribute Details
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor.
5 6 7 |
# File 'lib/asciinema/frame.rb', line 5 def cursor @cursor end |
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
5 6 7 |
# File 'lib/asciinema/frame.rb', line 5 def snapshot @snapshot end |