Remove warning, Enumerator.new without a blokc is deprecated

use Object#to_enum