Using a Shebang Line on Unix/Linux
# A shebang line may appear on the first line of a Ruby program (or other program or script).
# It helps a Unix/Linux system execute the commands according to a specified interpreterRuby.
# This does not work on Windows.
#!/usr/bin/env ruby
puts "Hello, Tom!"
Related examples in the same category