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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Resets a cycle so that it starts from the first element the next time it is called. Pass in <tt>name</tt> to reset a named cycle.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Example
- !ruby/struct:SM::Flow::VERB 
  body: "  # Alternate CSS classes for even and odd numbers...\n  @items = [[1,2,3,4], [5,6,3], [3,4,5,6,7,4]]\n  &lt;table&gt;\n  &lt;% @items.each do |item| %&gt;\n    &lt;tr class=&quot;&lt;%= cycle(&quot;even&quot;, &quot;odd&quot;) -%&gt;&quot;&gt;\n        &lt;% item.each do |value| %&gt;\n          &lt;span style=&quot;color:&lt;%= cycle(&quot;#333&quot;, &quot;#666&quot;, &quot;#999&quot;, :name =&gt; &quot;colors&quot;) -%&gt;&quot;&gt;\n            &lt;%= value %&gt;\n          &lt;/span&gt;\n        &lt;% end %&gt;\n\n        &lt;% reset_cycle(&quot;colors&quot;) %&gt;\n    &lt;/tr&gt;\n  &lt;% end %&gt;\n  &lt;/table&gt;\n"
full_name: ActionView::Helpers::TextHelper#reset_cycle
is_singleton: false
name: reset_cycle
params: (name = "default")
visibility: public
