I am new to Ruby and am trying to learn from a book. However, I have one problem – it says I should save a file so that it ends with .rb but my Mac only lets me use .rtf so that's what I used. But the next thing I needed to do was open it in Terminal and the command cd /Users/username/ruby didn't work for me. I'm guessing the reason for this is because I didn't use .rb it didn't work.
So my question is: What should I use for writing Ruby in the end of that command, or for saving with the .rb extension?