Class: Commands::Clear
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
#initialize
Methods included from DriveError
#drive_error_string
included
Class Method Details
.command_name ⇒ Object
8
9
10
|
# File 'lib/gdsh/clear.rb', line 8
def self.command_name
'clear'
end
|
.function ⇒ Object
12
13
14
|
# File 'lib/gdsh/clear.rb', line 12
def self.function
'Clears the screen.'
end
|
Instance Method Details
#execute ⇒ Object
16
17
18
|
# File 'lib/gdsh/clear.rb', line 16
def execute
system('clear') || system('cls')
end
|