Skip to content

Instantly share code, notes, and snippets.

@BenHall
Created November 27, 2009 15:20
Show Gist options
  • Save BenHall/244057 to your computer and use it in GitHub Desktop.
Save BenHall/244057 to your computer and use it in GitHub Desktop.
Yield a block of code in Ruby
def x()
yeild
end
x { puts 'abc' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment