Skip to content

Instantly share code, notes, and snippets.

@qickstarter
Created February 26, 2014 08:40
Show Gist options
  • Save qickstarter/9225896 to your computer and use it in GitHub Desktop.
Save qickstarter/9225896 to your computer and use it in GitHub Desktop.
puts '2. This is main Ruby Program'
END { puts '3. Terminating Ruby Program' }
BEGIN { puts '1. Initializing Ruby Program' }
# =>
# 1. Initializing Ruby Program
# 2. This is main Ruby Program
# 3. Terminating Ruby Program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment