Skip to content

Instantly share code, notes, and snippets.

@samaaron
Created November 16, 2015 16:02
Show Gist options
  • Save samaaron/e98ba9d54cb5b27d6261 to your computer and use it in GitHub Desktop.
Save samaaron/e98ba9d54cb5b27d6261 to your computer and use it in GitHub Desktop.
define :foo do |&block|
block.call("hello")
end
foo do |m|
puts "#{m} Sam"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment