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)
  # TECSCDE.logger.info("add_change_set #{tm_object.class} change_set=#{@change_no}")
  @change_set_manager.add_change_set(tm_object)
end

#init_change_setObject

—– ChangeSetControl methods —–#



5
6
7
# File 'lib/tecscde/change_set_control.rb', line 5

def init_change_set
  @change_set_manager = TECSCDE::ChangeSetControl::ChangeSetManager.new
end

#modified?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/tecscde/change_set_control.rb', line 28

def modified?
  @change_set_manager.modified?
end

#redoObject



24
25
26
# File 'lib/tecscde/change_set_control.rb', line 24

def redo
  @change_set_manager.redo
end

#set_undo_pointObject



16
17
18
# File 'lib/tecscde/change_set_control.rb', line 16

def set_undo_point
  @change_set_manager.set_undo_point
end

#undoObject



20
21
22
# File 'lib/tecscde/change_set_control.rb', line 20

def undo
  @change_set_manager.undo
end