Skip to content

Instantly share code, notes, and snippets.

@ryanlecompte
Created April 8, 2011 23:37
Show Gist options
  • Save ryanlecompte/910936 to your computer and use it in GitHub Desktop.
Save ryanlecompte/910936 to your computer and use it in GitHub Desktop.
def m1
commands = {:exit => Proc.new { break }}
loop do
commands[:exit].call
end
puts "Done!"
end
m1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment