You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
7 years ago
|
# 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"
|