Skip to content

Instantly share code, notes, and snippets.

@raroni
Created February 23, 2015 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raroni/f123c883f998b5386999 to your computer and use it in GitHub Desktop.
Save raroni/f123c883f998b5386999 to your computer and use it in GitHub Desktop.
def b(n, &block)
puts "start: #{n}"
if block_given?
puts yield
end
puts "stop"
end
def a(&block)
b(1, &block)
end
a()
a { "hey" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment