Class: RubynCode::CLI::Commands::Quit

Inherits:
Base
  • Object
show all
Defined in:
lib/rubyn_code/cli/commands/quit.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all_names, hidden?

Class Method Details

.aliasesObject



9
# File 'lib/rubyn_code/cli/commands/quit.rb', line 9

def self.aliases = ['/exit', '/q'].freeze

.command_nameObject



7
# File 'lib/rubyn_code/cli/commands/quit.rb', line 7

def self.command_name = '/quit'

.descriptionObject



8
# File 'lib/rubyn_code/cli/commands/quit.rb', line 8

def self.description = 'Exit Rubyn Code'

Instance Method Details

#execute(_args, _ctx) ⇒ Object



11
12
13
# File 'lib/rubyn_code/cli/commands/quit.rb', line 11

def execute(_args, _ctx)
  :quit
end