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.



1957
1958
1959
1960
1961
# File 'lib/textbringer/buffer.rb', line 1957

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



1955
1956
1957
# File 'lib/textbringer/buffer.rb', line 1955

def location
  @location
end

#versionObject

Returns the value of attribute version.



1954
1955
1956
# File 'lib/textbringer/buffer.rb', line 1954

def version
  @version
end