That code is legal Ruby! If you ran it, you’d see 8. How? There’s a tale to tell..
The String with the Golden Space
He was using a Twitter library that returned a tweet, “@twellyme film”, in a string called reply. The problem was that despite calling reply.split, the string refused to split on whitespace. Yet if he did “@twellyme film”.split in IRB, that was fine.Read more at the source