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.



1640
1641
1642
1643
1644
# File 'lib/textbringer/buffer.rb', line 1640

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1638
1639
1640
# File 'lib/textbringer/buffer.rb', line 1638

def location
  @location
end

#versionObject

Returns the value of attribute version.



1637
1638
1639
# File 'lib/textbringer/buffer.rb', line 1637

def version
  @version
end