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.
|
# 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"
|