1:#!/usr/bin/ruby -w 2:puts "Hello World!\n" 3: 4:# Print a variable 5:test = "human events" 6:puts test 7: 8:# Combining or concatenating two strings 9:puts "1: When in the course of " + test 10: 11:# Printing a value within a String. Interpolation like Perl 12:puts "2: When in the course of #{test}" 13: 14:# Create a value using a here docment 15:heredoc = <<END_OF_STRING 16:------------------------------- 17:Calling the test value again: 18:#{test} 19:End of the text 20:------------------------------- 21:END_OF_STRING 22: 23:puts heredoc 24: