Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created July 21, 2010 15:05
Show Gist options
  • Select an option

  • Save workmad3/484612 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/484612 to your computer and use it in GitHub Desktop.
def test(callable)
callable.call
puts "here"
end
test(lambda{return}) #=> "here"
test(proc{return}) #=> LocalJumpError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment