With start and length parameters
months = %w[ nil January February March April May June July August September October November December ] months[5..7] = "Mai", "Juni", "Juli" months[5, 3] = "May", "June", "July"