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.



1759
1760
1761
1762
1763
# File 'lib/textbringer/buffer.rb', line 1759

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1757
1758
1759
# File 'lib/textbringer/buffer.rb', line 1757

def location
  @location
end

#versionObject

Returns the value of attribute version.



1756
1757
1758
# File 'lib/textbringer/buffer.rb', line 1756

def version
  @version
end