There’s no neat and nice way of clearing the irb console as it seems.
There is a way however.
Put the following in a file called utilities.rb.
module Utilities def cls system 'cls' end end
Then put the following lines into the project where you want to clear the irb console.
require_relative 'utilities.rb' include Utilities
and use the cls function thus
Utilities.cls
Note: This only works on Windows machines.