Ruby course

python-mini

Ruby It is an open source server-side scripting language for object-oriented programming , stay 20 century 90 By Hiroshi Matsumoto of Japan in the mid-s (まつもとゆきひろ/Yukihiro Matsumoto) Design and develop . stay Ruby community , Matsumoto is also known as Matsu (Matz).Ruby It can run on a variety of platforms , as Windows、MAC OS and UNIX Various versions of .

Learn this tutorial , You will be right Ruby Have a comprehensive understanding .

Now start learning Ruby!

Who is suitable for reading this tutorial ?

This tutorial is helpful for beginners to understand Ruby Basic knowledge and concepts of language .

Before reading this tutorial , What you need to know :

Before you start practicing the various examples provided in this tutorial , It is best to have a basic understanding of computer programs and computer programming languages , This will help you learn this tutorial .

compile / Execute Ruby Program

For most programming languages , The first example of getting started is "Hello World!", The following example uses Ruby output "Hello World!":

example

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

Run instance »

click " Run instance " Button to view the running results of the online instance .

Or in irb Interactive command line mode :

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