Ruby - Introduction Hello world

Introduction

Let's look at the code of the traditional "Hello world" program:

Demo

puts 'hello world'

Result

The program contains one method, puts, and one string, "hello world."

It doesn't have any headers or class definitions, and it doesn't have any import sections or "main" functions.