How Do You Clear The IRB Console?

How do you clear the IRB console screen?


Solution 1:

On Mac OS X or Linux you can use Ctrl + L to clear the IRB screen.

Solution 2:

Throw this inside %userprofile%\.irbrc and you're good

def cls
  system('cls')
end

From IRB clear screen on windows.