Skip to content

Instantly share code, notes, and snippets.

@Shinpeim
Created February 2, 2014 15:35
Show Gist options
  • Save Shinpeim/8770091 to your computer and use it in GitHub Desktop.
Save Shinpeim/8770091 to your computer and use it in GitHub Desktop.
a = ->{10}
b = ->{10}
c = ->{a.call + b.call}
puts c.call # => 20
a = ->{20}
puts c.call # => 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment