Ruby/Array/insert

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

Insert Elements

months = %w[ nil January February March April May June July August September
October November December ]
months.insert( 0, nil )