--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: (elem)
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Convert an enumerable to a hash. Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: "  people.index_by(&amp;:login)\n    =&gt; { &quot;nextangle&quot; =&gt; &lt;Person ...&gt;, &quot;chade-&quot; =&gt; &lt;Person ...&gt;, ...}\n  people.index_by { |person| &quot;#{person.first_name} #{person.last_name}&quot; }\n    =&gt; { &quot;Chade- Fowlersburg-e&quot; =&gt; &lt;Person ...&gt;, &quot;David Heinemeier Hansson&quot; =&gt; &lt;Person ...&gt;, ...}\n"
full_name: Enumerable#index_by
is_singleton: false
name: index_by
params: () {|elem| ...}
visibility: public
