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\")
For windows users:
Just type this below function in your irb window and you are good to go:
Define this function:
def cls system('cls') end
After defining call this function whenever required.