Class: EditorWish
- Inherits:
-
Djinni::Wish
- Object
- Djinni::Wish
- EditorWish
- Defined in:
- lib/zoom/wish/editor_wish.rb
Instance Method Summary collapse
Instance Method Details
#aliases ⇒ Object
4 5 6 |
# File 'lib/zoom/wish/editor_wish.rb', line 4 def aliases return ["editor"] end |
#description ⇒ Object
8 9 10 |
# File 'lib/zoom/wish/editor_wish.rb', line 8 def description return "Configure editor" end |
#execute(args, djinni_env = {}) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/zoom/wish/editor_wish.rb', line 12 def execute(args, djinni_env = {}) if (args.empty?) usage return end djinni_env["config"].use_editor(args) end |
#usage ⇒ Object
21 22 23 24 |
# File 'lib/zoom/wish/editor_wish.rb', line 21 def usage puts("#{aliases.join(", ")} <value>") puts(" #{description}.") end |