diff options
| author | Misty De Meo | 2014-03-08 10:37:58 -0800 |
|---|---|---|
| committer | Misty De Meo | 2014-03-08 10:37:58 -0800 |
| commit | 53a25584730eee0de460b05cafd12d3ac8910f35 (patch) | |
| tree | 7fe15630d3b296de1de48ffc88076e47ef567e56 /Library/Homebrew/utils.rb | |
| parent | 9850e84f3bebea139d4b8bec4b8496955fc06ef2 (diff) | |
| download | brew-53a25584730eee0de460b05cafd12d3ac8910f35.tar.bz2 | |
Symbol#to_proc: fix with arrays of arrays
Previously, with nested arrays, the Symbol#to_proc would iterate over
the first item in the nested array instead of the array itself, e.g.:
[[1,2], [3,4]].map(&:first) #=>
NoMethodError: undefined method `first' for 1:Fixnum
Diffstat (limited to 'Library/Homebrew/utils.rb')
0 files changed, 0 insertions, 0 deletions
