Module: TECSCDE::TECSModel::TmUneditable

Included in:
TmCell, TmJoin
Defined in:
lib/tecscde/tecs_model/tm_uneditable.rb

Overview

class must be descendant of Node

Instance Method Summary collapse

Instance Method Details

#editable?Boolean

TmObject#editable? ***

Returns:

  • (Boolean)


63
64
65
# File 'lib/tecscde/tecs_model/tm_uneditable.rb', line 63

def editable?
  @editable
end

#set_editable(locale) ⇒ Object

TmObject#set_editable

locale

see Node in syntaxobj.rb



58
59
60
# File 'lib/tecscde/tecs_model/tm_uneditable.rb', line 58

def set_editable(locale)
  @editable = locale[0] == model.file_editing
end