How do you clear the IRB console screen?
Throw this inside %userprofile%\.irbrc and you're good
def cls
system('cls')
end
On *nix boxes
`clear`
on Windows
system 'cls' # works
`cls` # does not work
on OSX
system 'clear' # works
`clear` # does not work
The backtick operator captures the output of the command and returns it
s = `cls`
puts s
would work better, I guess.