File: //usr/local/rvm/gems/ruby-2.7.4/doc/activesupport-6.1.4.1/ri/Enumerable/index_with-i.ri
U:RDoc::AnyMethod[iI"index_with:ETI"Enumerable#index_with;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QConvert an enumerable to a hash, using the element as the key and the block ;TI"result as the value.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"=post = Post.new(title: "hey there", body: "what's up?")
;TI"
;TI"M%i( title body ).index_with { |attr_name| post.public_send(attr_name) }
;TI"5# => { title: "hey there", body: "what's up?" }
;T:@format0o;
; [I"OIf an argument is passed instead of a block, it will be used as the value ;TI"for all elements:;T@o;; [I"6%i( created_at updated_at ).index_with(Time.now)
;TI"N# => { created_at: 2020-03-09 22:31:47, updated_at: 2020-03-09 22:31:47 };T;
0:
@fileI".lib/active_support/core_ext/enumerable.rb;T:0@omit_headings_from_table_of_contents_below00I" elem;T[ I"#(default = INDEX_WITH_DEFAULT);T@FI"Enumerable;TcRDoc::NormalModule00