Fun with Ruby Arrays
Last night I lost hours of my life to strange behavior with Ruby arrays. Now that I know what’s going on it all makes sense but I can see how someone can easily be confused by this. I’m sharing it in hopes that others might avoid the same pitfall and as a reminder to myself in the future.