Ruby Tutorial


ruby-mini-logo.png

Ruby is an open source server-side scripting language for object-oriented programming. It was designed and developed by Japan's Yukihiro Matsumoto in the mid-1990s. . In the Ruby community, Matsumoto is also known as Matz. Ruby runs on multiple platforms such as Windows, MAC OS, and various versions of UNIX.

After studying this tutorial, you will have a comprehensive understanding of Ruby.

Start learning Ruby now!

Who is suitable to read this tutorial?

This tutorial helps beginners understand the basic knowledge and basic concepts of Ruby language.

What you need to know before reading this tutorial:

Before you start practicing the various examples provided in this tutorial, it is best to already have an understanding of computer programs and computer programming languages A basic understanding that will help you with this tutorial.

Compile/execute Ruby program

For most programming languages, the first introductory example is "Hello World!". The following example uses Ruby to output "Hello World!":

Instance

#!/usr/bin/ruby
puts "Hello World!";

Run Instance»

Click the "Run Instance" button to view the online instance

Click the "Run Instance" button to view the online instance running results.

Or in irb interactive command line mode:

>>puts "Hello, world!"
Hello, world!
=> nil