Class: Resedit::ExitCommand

Inherits:
AppCommand show all
Defined in:
lib/resedit/app/std_commands.rb

Instance Attribute Summary

Attributes inherited from AppCommand

#names, #ohash, #opts, #params, #type

Instance Method Summary collapse

Methods inherited from AppCommand

#addOption, #addParam, #log, #logd, #loge, #parseParams, #run

Constructor Details

#initializeExitCommand

Returns a new instance of ExitCommand.



15
16
17
# File 'lib/resedit/app/std_commands.rb', line 15

def initialize
    super(['quit','q', 'exit'])
end

Instance Method Details

#job(params) ⇒ Object



18
19
20
# File 'lib/resedit/app/std_commands.rb', line 18

def job(params)
    App::get().quit();
end