Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created March 9, 2014 18:05
Show Gist options
  • Save bcardarella/9451743 to your computer and use it in GitHub Desktop.
Save bcardarella/9451743 to your computer and use it in GitHub Desktop.
def method_a
method_b do
thing = 'hey'
end
end
def method_b
thing = nil
yield
# expect 'hey'
puts thing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment