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.



1441
1442
1443
1444
1445
# File 'lib/textbringer/buffer.rb', line 1441

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1439
1440
1441
# File 'lib/textbringer/buffer.rb', line 1439

def location
  @location
end

#versionObject

Returns the value of attribute version.



1438
1439
1440
# File 'lib/textbringer/buffer.rb', line 1438

def version
  @version
end