Skip to content

Instantly share code, notes, and snippets.

/a.rb Secret

Created October 30, 2012 14:58
Show Gist options
  • Save anonymous/a83a7b3e78b21113b638 to your computer and use it in GitHub Desktop.
Save anonymous/a83a7b3e78b21113b638 to your computer and use it in GitHub Desktop.
let do |a=3|
hello = -> { a }
let do |a=30|
hello.()
end
end
# => 3
let do |a=3|
hello = -> { a }
a = 30
hello.()
end
# => 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment