HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/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::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 = INDEX_WITH_DEFAULT);T@FI"Enumerable;TcRDoc::NormalModule00