Skip to content

Instantly share code, notes, and snippets.

@DGaffney
Created February 22, 2011 20:45
Show Gist options
  • Select an option

  • Save DGaffney/839353 to your computer and use it in GitHub Desktop.

Select an option

Save DGaffney/839353 to your computer and use it in GitHub Desktop.
def blah
result = yield 10
puts result==10
end
blah do |number|
number+1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment