HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activesupport-7.0.4.2/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::BlankLineo: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 = (no_default = true));T@FI"Enumerable;TcRDoc::NormalModule00