This mumbo-jumbo tells UNIX to run it with Ruby, so you can run it from the command line:
./project_euler_12.rb