On Sat, Nov 10, 2012 at 7:52 AM, Carlos A. <lists / ruby-forum.com> wrote:

> I have saved the text wrangler file on my desktop, so I open the
> terminal, type irb for ruby,

That's wrong; if you want to *run* the program in the file, do exactly
as Damian said, e.g.   ruby /Desktop/calc.rb

Run irb when you want to do interactive experimentation.

-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan