When you type Ruby helloword.rb into terminal, what is the Ruby command actually doing?

Why, it’s the Ruby Interpreter of course.  The Ruby Interpreter examines the Ruby code that you’ve typed into your editor, and it translates it into machine code instructions for the computer.  One advantage is that, it enables you to modify the program while it’s running; the disadvantage is that it runs more slowly than a compiled program.

| Back

Footerfull