instance method
build_idx_hash
Ruby on Rails edge
Since v7.0.10 Private — implementation detail, not part of the public APISignature
build_idx_hash(arr)
No documentation comment.
Parameters
-
arrreq
Source
# File actionview/lib/action_view/template_details.rb, line 22
def build_idx_hash(arr)
[*arr, nil].each_with_index.to_h.freeze
end
Defined in actionview/lib/action_view/template_details.rb line 22
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TemplateDetails::Requested