Method: ActionView::Helpers::TextHelper::Cycle#initialize

Defined in:
lib/action_view/helpers/text_helper.rb

#initialize(first_value, *values) ⇒ Cycle

Returns a new instance of Cycle.



409
410
411
412
# File 'lib/action_view/helpers/text_helper.rb', line 409

def initialize(first_value, *values)
  @values = values.unshift(first_value)
  reset
end