Skip to content

Instantly share code, notes, and snippets.

@leehambley
Created July 31, 2010 19:22
Show Gist options
  • Save leehambley/502518 to your computer and use it in GitHub Desktop.
Save leehambley/502518 to your computer and use it in GitHub Desktop.
def do_magic_with_block(magic, &block)
result = magic.reverse
yield
end
do_magic_with_block "magic goes here" do
$stdout.puts result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment