instance method
get_cycle
Ruby on Rails 7.1.6
Since v2.2.3 PrivateSignature
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.
Parameters
-
namereq
Source
# File actionview/lib/action_view/helpers/text_helper.rb, line 522
def get_cycle(name)
@_cycles = Hash.new unless defined?(@_cycles)
@_cycles[name]
end
Defined in actionview/lib/action_view/helpers/text_helper.rb line 522
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::TextHelper