mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
# to install: ruby is usually already installed
|
|
# if not, install it this way:
|
|
# (Debian/Ubuntu) apt-get install ruby
|
|
# (Fedora/CentOS) yum install ruby
|
|
# to execute: ruby hello.rb
|
|
puts "Hello world!"
|
|
# or
|
|
$stdout.puts "Hello world!"
|
|
# or
|
|
STDOUT.write "Hello world!\n"
|