Class: Merrol::EditController

Inherits:
Controller show all
Defined in:
lib/merrol/controllers/edit_controller.rb

Instance Method Summary collapse

Methods inherited from Controller

#initialize, #method_missing, #name

Constructor Details

This class inherits a constructor from Merrol::Controller

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Merrol::Controller

Instance Method Details

#deleteObject



19
20
21
# File 'lib/merrol/controllers/edit_controller.rb', line 19

def delete
  edit_view.buffer.delete_selection true, true
end

#redoObject



15
16
17
# File 'lib/merrol/controllers/edit_controller.rb', line 15

def redo
  edit_view.redo
end

#select_allObject



3
4
5
# File 'lib/merrol/controllers/edit_controller.rb', line 3

def select_all
  edit_view.select_all(true)
end

#select_noneObject



7
8
9
# File 'lib/merrol/controllers/edit_controller.rb', line 7

def select_none
  edit_view.select_all(false)
end

#undoObject



11
12
13
# File 'lib/merrol/controllers/edit_controller.rb', line 11

def undo
  edit_view.undo
end