I am new to Ruby and am learning from this tutorial on the Ruby site.
I can run simple scripts from the IRB command line but I am not sure how to run a script I have written on an external .rb file.
Is there a special directory I must put this in to run it from IRB?
ruby /path/to/your/ruby_script.rbwhich tells the interpreter to load and run the code. Perhaps it'd be really useful for you to find and read a Ruby tutorial, which would cover this within the first few pages.