<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -73,6 +73,20 @@ whatever reason:
     end
   end
 
+== The default_values method
+
+As a shortcut, you can use +default_values+ to set multiple default values at once.
+
+  default_values :age  =&gt; 20
+                 :uuid =&gt; lambda { UuidGenerator.new.generate_uuid }
+
+The difference is purely aesthetic.  If you have lots of default values which are constants or constructed with one-line blocks, +default_values+ may look nicer.  If you have default values constructed by longer blocks, +default_value_for+ suit you better.  Feel free to mix and match.
+
+As a side note, due to specifics of Ruby's parser, you cannot say,
+
+  default_value :uuid { UuidGenerator.new.generate_uuid }
+
+because it will not parse.  This is in part the inspiration for the +default_values+ syntax.
 
 == Rules
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -54,6 +54,16 @@ module DefaultValueForPlugin
 			end
 			_default_attribute_values[attribute.to_s] = container
 		end
+    
+    def default_values(values)
+      values.each_pair do |key, value|
+        if value.kind_of? Proc
+          default_value_for(key, &amp;value)
+        else
+          default_value_for(key, value)
+        end
+      end
+    end
 	end
 	
 	module InstanceMethods</diff>
      <filename>init.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0c7097cc80d807f73f50dbf3bb96a288262f58ad</id>
    </parent>
  </parents>
  <author>
    <name>Peter Jaros</name>
    <email>peeja@dropio.com</email>
  </author>
  <url>http://github.com/methodmissing/default_value_for/commit/12653e5038f49ec387e777c1065196ad79dc0436</url>
  <id>12653e5038f49ec387e777c1065196ad79dc0436</id>
  <committed-date>2008-11-17T14:03:54-08:00</committed-date>
  <authored-date>2008-11-17T14:03:54-08:00</authored-date>
  <message>Add default_values method.</message>
  <tree>15a8e89694c25d3c9d2808489f475bbdbf152041</tree>
  <committer>
    <name>Peter Jaros</name>
    <email>peeja@dropio.com</email>
  </committer>
</commit>
