Hi I'm learning ruby, I just started and when I save and run a .rb file, it opens up in cmd, it does what it's supposed to do but then shuts down immediately after getting the results of the thing it's supposed to do.
It's really really nooby/beginner but I just started learning,
So I was wondering if there is a certain command in ruby like there is in a batch or .bat file.Code:puts 10+20
Example - You can enterat the end of the file and command prompt will pause after running the code.Code:pause
If you can help me it would be very greatly appreciated seeing as I can't really move on and it's frustrating me.