# File lib/backports/1.9.2/array/rotate.rb, line 12 def rotate!(n=1) n = Backports.coerce_to_int(n) % (empty? ? 1 : size) concat(slice!(0, n)) end