Class: Djinni::Wish::Quit

Inherits:
Djinni::Wish show all
Defined in:
lib/djinni/wish/quit.rb

Instance Method Summary collapse

Methods inherited from Djinni::Wish

#tab_complete

Instance Method Details

#aliasesObject



2
3
4
# File 'lib/djinni/wish/quit.rb', line 2

def aliases
    return ["bye", "exit", "q", "quit"]
end

#descriptionObject



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

#usageObject



14
15
16
17
# File 'lib/djinni/wish/quit.rb', line 14

def usage
    puts aliases.join(", ")
    puts "    #{description}."
end