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

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

#initialize(first_value, *values) ⇒ Cycle

Returns a new instance of Cycle.



485
486
487
488
# File 'actionview/lib/action_view/helpers/text_helper.rb', line 485

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