Skip to content

Instantly share code, notes, and snippets.

@closer
Last active August 29, 2015 14:26
Show Gist options
  • Save closer/4d56c981f049d06d2f56 to your computer and use it in GitHub Desktop.
Save closer/4d56c981f049d06d2f56 to your computer and use it in GitHub Desktop.
def l
"method"
end
p l #=> "method"
1.times do
l = "variable"
p l #=> "variable"
p l() #=> "method"
end
p l #=> "method"
l = "variable"
p l #=> "variable"
p l() #=> "method"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment