Skip to content

Instantly share code, notes, and snippets.

@wenzowski
Created September 20, 2012 19:47
Show Gist options
  • Save wenzowski/3757938 to your computer and use it in GitHub Desktop.
Save wenzowski/3757938 to your computer and use it in GitHub Desktop.
What is a block?
def what_am_i(&block)
block.class
end
what_am_i {}
# => Proc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment