Use Object#to_enum instead of Enumerator.new