Mega Code Archive

 
Categories / Ruby / Language Basics
 

Using a Shebang Line on UnixLinux

# 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 interpreter—Ruby.  # This does not work on Windows. #!/usr/bin/env ruby    puts "Hello, Tom!"