Class: Textbringer::UndoableAction
- Inherits:
-
Object
- Object
- Textbringer::UndoableAction
- Defined in:
- lib/textbringer/buffer.rb
Direct Known Subclasses
CompositeAction, DeleteAction, InsertAction, OverwriteAction
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(buffer, location) ⇒ UndoableAction
constructor
A new instance of UndoableAction.
Constructor Details
#initialize(buffer, location) ⇒ UndoableAction
Returns a new instance of UndoableAction.
1781 1782 1783 1784 1785 |
# File 'lib/textbringer/buffer.rb', line 1781 def initialize(buffer, location) @version = nil @buffer = buffer @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
1779 1780 1781 |
# File 'lib/textbringer/buffer.rb', line 1779 def location @location end |
#version ⇒ Object
Returns the value of attribute version.
1778 1779 1780 |
# File 'lib/textbringer/buffer.rb', line 1778 def version @version end |