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.



1838
1839
1840
1841
1842
# File 'lib/textbringer/buffer.rb', line 1838

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

Instance Attribute Details

#file_versionObject

Returns the value of attribute file_version.



1835
1836
1837
# File 'lib/textbringer/buffer.rb', line 1835

def file_version
  @file_version
end

#locationObject (readonly)

Returns the value of attribute location.



1836
1837
1838
# File 'lib/textbringer/buffer.rb', line 1836

def location
  @location
end