Skip to content

Instantly share code, notes, and snippets.

@floere
Created March 27, 2012 19:59
Show Gist options
  • Select an option

  • Save floere/2219741 to your computer and use it in GitHub Desktop.

Select an option

Save floere/2219741 to your computer and use it in GitHub Desktop.
The END block in Ruby.
END { p "This is the end, my only friend, the end." }
p "Feeling very sleepy..."
sleep 1
load File.expand_path("../ends.rb", __FILE__)
load File.expand_path("../ends.rb", __FILE__)
load File.expand_path("../ends.rb", __FILE__)
load File.expand_path("../ends.rb", __FILE__)
require File.expand_path("../ends.rb", __FILE__)
require File.expand_path("../ends.rb", __FILE__)
require File.expand_path("../ends.rb", __FILE__)
require File.expand_path("../ends.rb", __FILE__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment