/ Published in: Ruby

Since there is no convenient way to clear the console in irb on windows, we can simple emulate the dos cls function
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# throw this inside %userprofile%\.irbrc and you're good def cls system('cls') end
URL: http://www.stephenchu.com/2006/09/enhance-your-irb-experience-on-windows.html
Comments
