Method: FormatText::FTO.enableEffector
- Defined in:
- lib/fto.rb
.enableEffector(id) ⇒ Object
Enables the effector with the specified ID (found in the effector’s id attribute). This is a no-op if the effector is already enabled.
:call-seq:
FTO.enableEffector<i>(Fixnum)</i> => <i>nil</i>
369 370 371 372 373 374 375 |
# File 'lib/fto.rb', line 369 def self.enableEffector(id) if ((e = @@RegisteredEffectors[id]).nil?) raise RuntimeError, _('No such effector ') + "ID\##{id}" end e.enabled = true self.rebuildEffectorList() end |