Mega Code Archive

 
Categories / Ruby / Statement
 

The code in a block labeled with the keyword BEGIN is run automatically when a Ruby program is loaded

BEGIN {puts "Hi "} puts "there " END {puts "sweetie."}