Class: CARPS::Setup::Editor
- Inherits:
-
Interface
- Object
- Interface
- QuitInterface
- Interface
- CARPS::Setup::Editor
- Defined in:
- lib/carps/wizard/steps.rb
Overview
Configure editor
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ Editor
constructor
A new instance of Editor.
Methods included from ControlInterface
Methods inherited from Interface
Constructor Details
#initialize ⇒ Editor
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
#description ⇒ Object
448 449 450 |
# File 'lib/carps/wizard/steps.rb', line 448 def description "Choose a text editor for editing character sheets, etc." end |