I would like to know to how to do in Ruby what I can do with system(\"clear\") in C. I wrote a program like
system(\"clear\")
puts \"amit\" system(\"clear\")
If you want something that is vaguely portable you can try:
system "clear" || system "cls"
which will try both clear and cls
clear
cls