Class: RubynCode::CLI::Commands::Clear
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::Clear
show all
- Defined in:
- lib/rubyn_code/cli/commands/clear.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
aliases, all_names, hidden?
Class Method Details
.command_name ⇒ Object
7
|
# File 'lib/rubyn_code/cli/commands/clear.rb', line 7
def self.command_name = '/clear'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/clear.rb', line 8
def self.description = 'Clear the terminal'
|
Instance Method Details
#execute(_args, _ctx) ⇒ Object
10
11
12
|
# File 'lib/rubyn_code/cli/commands/clear.rb', line 10
def execute(_args, _ctx)
system('clear')
end
|