README.md in ratatouille-1.2.0 vs README.md in ratatouille-1.2.2

- old
+ new

@@ -31,16 +31,26 @@ Within a block, the ratifiable\_object method provides the object that is to be validated against. This will change when using *given\_key*. +### name +Within a block, the name method provides the name of the scope. This can be used in your custom validation messages. + + + ## Usage All of the following methods perform validation on the *ratifiable\_object* defined in scope of the block. +### is\_a? + +Method to check if ratifiable\_object matches given class. Will not validate without a given class. + + ### given\_key This method is used to scope its given block to the key value. Useful to reduce the need to explicitly namespace nested keys in *ratifiable\_object*. * **This method doesn't perform any validation and must be used with a block to get any use out of it.** @@ -207,9 +217,11 @@ ### validation\_error Used to insert validation error message into the Ratifier object. + +* Scope name prepended to every validation error #### Syntax It is also possible to set the context of an error by passing in a second argument. However, it defaults to the root of the current ratifiable\_object ('/').