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\")
Here is a multiplatform way to do it:
Gem.win_platform? ? (system "cls") : (system "clear")