Skip to content

Instantly share code, notes, and snippets.

@patrickberkeley
Created December 31, 2008 01:28
Show Gist options
  • Select an option

  • Save patrickberkeley/41835 to your computer and use it in GitHub Desktop.

Select an option

Save patrickberkeley/41835 to your computer and use it in GitHub Desktop.
a = [1, 2]
b = 'cat'
a.each {|b| c = b * a[1]}
a #=> [1, 2]
b #=> 2
defined?(c) #=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment