private Method

TextHelper.get_cycle(name)

The cycle helpers need to store the cycles in a place that is guaranteed to be reset every time a page is rendered, so it uses an instance variable of ActionView::Base.

Source Code

# File action_view/helpers/text_helper.rb, line 447
def get_cycle(name)
  @_cycles = Hash.new unless defined?(@_cycles)
  return @_cycles[name]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.