While the performance difference between the old and new approach is pretty much negligible, it's simply not needed to use #shift/#unshift here. Thanks to Mon_Ouie from the #ruby IRC channel for suggesting this. |
||
|---|---|---|
| .. | ||
| oga | ||
| oga.rb | ||
While the performance difference between the old and new approach is pretty much negligible, it's simply not needed to use #shift/#unshift here. Thanks to Mon_Ouie from the #ruby IRC channel for suggesting this. |
||
|---|---|---|
| .. | ||
| oga | ||
| oga.rb | ||