--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Rotates an array's elements from back to front n times.
- !ruby/struct:SM::Flow::VERB 
  body: "  [1,2,3].rotate      #=&gt; [3,1,2]\n  [3,1,2].rotate      #=&gt; [2,3,1]\n  [3,1,2].rotate      #=&gt; [1,2,3]\n  [1,2,3].rotate(3)   #=&gt; [1,2,3]\n"
- !ruby/struct:SM::Flow::P 
  body: A negative parameter reverses the order from front to back.
- !ruby/struct:SM::Flow::VERB 
  body: "  [1,2,3].rotate(-1)  #=&gt; [2,3,1]\n"
- !ruby/struct:SM::Flow::P 
  body: "CREDIT: Florian Gross, Thomas Sawyer"
full_name: Array#rotate
is_singleton: false
name: rotate
params: (n=1)
visibility: public
