Permalink
Browse files

Fix something in the README.

  • Loading branch information...
1 parent e902a8d commit f98711683f9153d720937327dddf3899b53e9cf5 @FooBarWidget committed Feb 16, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 README.rdoc
View
8 README.rdoc
@@ -96,9 +96,13 @@ The difference is purely aesthetic. If you have lots of default values which ar
As a side note, due to specifics of Ruby's parser, you cannot say,
- default_value :uuid { UuidGenerator.new.generate_uuid }
+ default_value_for :uuid { UuidGenerator.new.generate_uuid }
-because it will not parse. This is in part the inspiration for the +default_values+ syntax.
+because it will not parse. One needs to write
+
+ default_value_for(:uuid) { UuidGenerator.new.generate_uuid }
+
+instead. This is in part the inspiration for the +default_values+ syntax.
== Rules

0 comments on commit f987116

Please sign in to comment.