Class: Textbringer::UndoableAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buffer, location) ⇒ UndoableAction

Returns a new instance of UndoableAction.



1807
1808
1809
1810
1811
# File 'lib/textbringer/buffer.rb', line 1807

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1805
1806
1807
# File 'lib/textbringer/buffer.rb', line 1805

def location
  @location
end

#versionObject

Returns the value of attribute version.



1804
1805
1806
# File 'lib/textbringer/buffer.rb', line 1804

def version
  @version
end