2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/_ruby/hello
2017-06-04 11:23:28 +00:00

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"