C.4 General Information

  • Ruby files have the extension .rb.

  • To run a Ruby program, either double-click the file or use the command line (assuming the Ruby interpreter executable is in your PATH):

    $ ruby program.rb

Get Computer Science Programming Basics in Ruby now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.