BEGIN END « Statement « Ruby






1.Execution Before or After a Program
2.The code in a block labeled with the keyword BEGIN is run automatically when a Ruby program is loaded
3.The code in a block labeled END is automatically run when the program finishes.