class Commands::Clear
Clear
screen.
Public Class Methods
command_name()
click to toggle source
# File lib/gdsh/clear.rb, line 8 def self.command_name 'clear' end
function()
click to toggle source
# File lib/gdsh/clear.rb, line 12 def self.function 'Clears the screen.' end
Public Instance Methods
execute()
click to toggle source
# File lib/gdsh/clear.rb, line 16 def execute system('clear') || system('cls') end