<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,7 +17,7 @@ module Enumerable
   def build_hash
     res = {}
     each do |x|
-      pair = yield x
+      pair = block_given? ? yield(x) : x
       res[pair.first] = pair.last if pair
     end
     res</diff>
      <filename>hobosupport/lib/hobo_support/enumerable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d70d68a75eebf91e7109cc5e3ca67d8f4c3f7b82</id>
    </parent>
  </parents>
  <author>
    <name>Tom Locke</name>
    <email>tom@tomlocke.com</email>
  </author>
  <url>http://github.com/tablatom/hobo/commit/5542bfdeea455c45894091102fbde1feabc6ce08</url>
  <id>5542bfdeea455c45894091102fbde1feabc6ce08</id>
  <committed-date>2009-06-10T01:55:05-07:00</committed-date>
  <authored-date>2009-06-10T01:55:05-07:00</authored-date>
  <message>HoboSupport - Enumerable.build_hash can now be used without a block to build a hash directly from a list of pairs</message>
  <tree>cd7c58844ae7d71e88d02b41e6b2126fd9433496</tree>
  <committer>
    <name>Tom Locke</name>
    <email>tom@tomlocke.com</email>
  </committer>
</commit>
