Class: Textbringer::UndoableAction

Inherits:
Object
  • Object
show all
Defined in:
lib/textbringer/buffer.rb

Direct Known Subclasses

CompositeAction, DeleteAction, InsertAction

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buffer, location) ⇒ UndoableAction

Returns a new instance of UndoableAction.



1561
1562
1563
1564
1565
# File 'lib/textbringer/buffer.rb', line 1561

def initialize(buffer, location)
  @version = nil
  @buffer = buffer
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1559
1560
1561
# File 'lib/textbringer/buffer.rb', line 1559

def location
  @location
end

#versionObject

Returns the value of attribute version.



1558
1559
1560
# File 'lib/textbringer/buffer.rb', line 1558

def version
  @version
end