Class: Djinni::Wish::Quit
- Inherits:
-
Djinni::Wish
- Object
- Djinni::Wish
- Djinni::Wish::Quit
- Defined in:
- lib/djinni/wish/quit.rb
Instance Method Summary collapse
Methods inherited from Djinni::Wish
Instance Method Details
#aliases ⇒ Object
2 3 4 |
# File 'lib/djinni/wish/quit.rb', line 2 def aliases return ["bye", "exit", "q", "quit"] end |
#description ⇒ Object
6 7 8 |
# File 'lib/djinni/wish/quit.rb', line 6 def description return "Quit" end |
#execute(args, djinni_env = {}) ⇒ Object
10 11 12 |
# File 'lib/djinni/wish/quit.rb', line 10 def execute(args, djinni_env = {}) exit 0 end |
#usage ⇒ Object
14 15 16 17 |
# File 'lib/djinni/wish/quit.rb', line 14 def usage puts aliases.join(", ") puts " #{description}." end |