cycle (Merb::Helpers::Text)

    # File lib/merb-helpers/text_helpers.rb, line 21
      def cycle(*values)
        options = extract_options_from_args!(values) || {}
        key = (options[:name] || :default).to_sym
        (@cycle_positions ||= {})[key] ||= {:position => -1, :values => values}
        unless values == @cycle_positions[key][:values]
          @cycle_positions[key] = {:position => -1, :values => values}
        end
        current = @cycle_positions[key][:position]
        @cycle_positions[key][:position] = current + 1
        values.at( (current + 1) % values.length).to_s
      end