Class: CARPS::Setup::Editor

Inherits:
Interface show all
Defined in:
lib/carps/wizard/steps.rb

Overview

Configure editor

Instance Method Summary collapse

Methods included from ControlInterface

#quit

Methods inherited from Interface

#run

Constructor Details

#initializeEditor

Returns a new instance of Editor.



441
442
443
444
445
446
# File 'lib/carps/wizard/steps.rb', line 441

def initialize
   super
   add_raw_command :editor, "Specify a text editor.\n\tUse %f in place of the filepath.\n\t\tExample:\n\t\tgvim --nofork %f", "COMMAND"
   add_command :wait, "Wait until the user says the editor is finished.  This may be useful if your editor forks into the background.\nDefault: no", "yes/no"
   @confirm = false
end

Instance Method Details

#descriptionObject



448
449
450
# File 'lib/carps/wizard/steps.rb', line 448

def description
"Choose a text editor for editing character sheets, etc."
end