It looks like 1.8.7 doesn't have flat_map on Enumerator. Ruby 2.0+ does though. If you want to support 1.8.7, you could call `to_a` after `step`.