Ruby is an open source object-oriented programming server-side scripting language that was designed and developed by Japan's Yukihiro Matsumoto (Yukihiro Matsumoto) in the mid 1990s. In the Ruby community, Matsumoto is also called Matz. Ruby can run on multiple platforms, such as various versions of Windows, MAC OS and UNIX.
Who should read this tutorial?
This tutorial helps beginners understand the basics and basic concepts of the Ruby 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, which will help you learn this tutorial.
Compile / execute Ruby program
For most programming languages, the first entry example is "Hello World!". The following example uses Ruby to output "Hello World!":
# ! / usr / bin / ruby
>> puts "Hello, world!"puts "Hello, world!"
Hello, world!Hello , world !
=> nil=> nil