Posted By

vanne on 06/27/07


ruby windows irb

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


IRB clear screen on windows

 / 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

  1. # throw this inside %userprofile%\.irbrc and you're good
  2. def cls
  3. system('cls')
  4. end

Report this snippet  

You need to login to post a comment.