Module: TECSCDE::ChangeSetControl
- Included in:
- TECSModel
- Defined in:
- lib/tecscde/change_set_control.rb,
lib/tecscde/change_set_control/change_set.rb,
lib/tecscde/change_set_control/change_set_manager.rb
Overview
ChangeSetControl: provide methods for controling ChangeSet
Defined Under Namespace
Classes: ChangeSet, ChangeSetManager
Instance Method Summary
collapse
Instance Method Details
#add_change_set(tm_object) ⇒ Object
ChangeSetControl#add_change_set
at the time modifying tm_object, record only the changed tm_object
11
12
13
14
|
# File 'lib/tecscde/change_set_control.rb', line 11
def add_change_set(tm_object)
@change_set_manager.add_change_set(tm_object)
end
|
#init_change_set ⇒ Object
—– ChangeSetControl methods —–#
#modified? ⇒ Boolean
28
29
30
|
# File 'lib/tecscde/change_set_control.rb', line 28
def modified?
@change_set_manager.modified?
end
|
24
25
26
|
# File 'lib/tecscde/change_set_control.rb', line 24
def redo
@change_set_manager.redo
end
|
#set_undo_point ⇒ Object
16
17
18
|
# File 'lib/tecscde/change_set_control.rb', line 16
def set_undo_point
@change_set_manager.set_undo_point
end
|
20
21
22
|
# File 'lib/tecscde/change_set_control.rb', line 20
def undo
@change_set_manager.undo
end
|