Tag Archives: scripts

Writing Scripts in Ruby on a Mac

I have learned to do very basic commands with Codecademy and Why’s Poignant Guide to Ruby, but, more importantly, this week I learned how to write, save, and run scripts in Ruby. It was actually surprisingly difficult to figure it out, since nearly every source I combed through online just said to save a script with .rb, then type “ruby filename.rb” in terminal. With the lack of additional information, I did not know where I should write a script, what format it should be in, etc. It was only after a lot of trial and error and one very helpful video on youtube that I understood what needed to be done. This post will take you through the steps to write a ruby script and run in it the terminal. Continue reading

Let others know too...Email this to someoneShare on FacebookTweet about this on TwitterShare on LinkedInShare on Google+Share on Tumblr