Easy Tutorial
❮ Ruby Method Ruby Cgi Methods ❯

Ruby Tutorial

Ruby is an open-source, object-oriented programming language for server-side scripting, designed and developed by Yukihiro Matsumoto (まつもとゆきひろ/Yukihiro Matsumoto) from Japan in the mid-1990s. In the Ruby community, Matsumoto is also known as Matz. Ruby can run on various platforms, such as Windows, MAC OS, and UNIX versions.

By studying this tutorial, you will gain a comprehensive understanding of Ruby.


Who is this tutorial for?

This tutorial is beneficial for beginners to understand the basics and fundamental concepts of the Ruby language.

Knowledge required before reading this tutorial:

Before you start practicing the various examples provided in this tutorial, it is best to have a basic understanding of computer programs and programming languages, which will aid your learning.

Compiling/Executing Ruby Programs

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

Example

#!/usr/bin/ruby

puts "Hello World!";

Click the "Run Example" button to see the online example execution result.

Or in the interactive command line mode of irb:

>> puts "Hello, world!"
Hello, world!
=> nil
❮ Ruby Method Ruby Cgi Methods ❯