Skip to content

Instantly share code, notes, and snippets.

@teliosdev
Created March 2, 2014 00:38
Show Gist options
  • Save teliosdev/9300000 to your computer and use it in GitHub Desktop.
Save teliosdev/9300000 to your computer and use it in GitHub Desktop.
thing = Some::HTTP::Thing.new("http://ruby-doc.org")
thing.callbacks = {
success: proc { puts "success!" },
failure: proc { puts "failed :(" },
error: proc { "umm?" }
}
thing.run!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment